modify alert bug
This commit is contained in:
parent
e01c081ed1
commit
514df817aa
|
@ -106,7 +106,7 @@ const ConsoleInputUI = ({clusterID, initialText}:ConsoleInputProps) => {
|
||||||
editorInstanceRef.current = senseEditor;
|
editorInstanceRef.current = senseEditor;
|
||||||
setInputEditor(senseEditor);
|
setInputEditor(senseEditor);
|
||||||
senseEditor.update(initialText || DEFAULT_INPUT_VALUE);
|
senseEditor.update(initialText || DEFAULT_INPUT_VALUE);
|
||||||
applyCurrentSettings(senseEditor!.getCoreEditor(), {fontSize:14, wrapMode: true,});
|
// applyCurrentSettings(senseEditor!.getCoreEditor(), {fontSize:14, wrapMode: true,});
|
||||||
|
|
||||||
function setupAutosave() {
|
function setupAutosave() {
|
||||||
let timer: number;
|
let timer: number;
|
||||||
|
|
|
@ -46,7 +46,7 @@ function ConsoleOutput({clusterID}: props) {
|
||||||
const textarea = editorRef.current!.querySelector('textarea')!;
|
const textarea = editorRef.current!.querySelector('textarea')!;
|
||||||
textarea.setAttribute('id', inputId);
|
textarea.setAttribute('id', inputId);
|
||||||
textarea.setAttribute('readonly', 'true');
|
textarea.setAttribute('readonly', 'true');
|
||||||
applyCurrentSettings(editorInstanceRef.current!, {fontSize:14, wrapMode: true,})
|
// applyCurrentSettings(editorInstanceRef.current!, {fontSize:14, wrapMode: true,})
|
||||||
const unsubscribeResizer = subscribeResizeChecker(editorRef.current!, editorInstanceRef.current!);
|
const unsubscribeResizer = subscribeResizeChecker(editorRef.current!, editorInstanceRef.current!);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|
|
@ -15,7 +15,7 @@ export default {
|
||||||
'alert.dashboard.severity-options.all': '所有告警级别',
|
'alert.dashboard.severity-options.all': '所有告警级别',
|
||||||
'alert.dashboard.state-options.all': '所有状态',
|
'alert.dashboard.state-options.all': '所有状态',
|
||||||
'alert.dashboard.state-options.active': '告警中',
|
'alert.dashboard.state-options.active': '告警中',
|
||||||
'alert.dashboard.state-options.acknowledged': '已知晓',
|
'alert.dashboard.state-options.acknowledged': '已响应',
|
||||||
'alert.dashboard.state-options.completed': '已恢复',
|
'alert.dashboard.state-options.completed': '已恢复',
|
||||||
'alert.dashboard.state-options.error': '错误',
|
'alert.dashboard.state-options.error': '错误',
|
||||||
'alert.dashboard.state-options.deleted': '已删除',
|
'alert.dashboard.state-options.deleted': '已删除',
|
||||||
|
@ -27,7 +27,7 @@ export default {
|
||||||
'alert.dashboard.table.columns.trigger_name': '触发器名称',
|
'alert.dashboard.table.columns.trigger_name': '触发器名称',
|
||||||
'alert.dashboard.table.columns.severity': '告警级别',
|
'alert.dashboard.table.columns.severity': '告警级别',
|
||||||
'alert.dashboard.table.columns.state': '状态',
|
'alert.dashboard.table.columns.state': '状态',
|
||||||
'alert.dashboard.table.columns.acknowledged_time': '确认时间',
|
'alert.dashboard.table.columns.acknowledged_time': '响应时间',
|
||||||
|
|
||||||
'alert.monitor': '监控管理',
|
'alert.monitor': '监控管理',
|
||||||
'alert.monitor.self': '监控项',
|
'alert.monitor.self': '监控项',
|
||||||
|
|
|
@ -32,7 +32,7 @@ const notifications = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const AlertingMain = React.memo(Main)
|
// const AlertingMain = React.memo(Main)
|
||||||
|
|
||||||
const AlertingUI = (props)=>{
|
const AlertingUI = (props)=>{
|
||||||
if(!props.selectedCluster.id){
|
if(!props.selectedCluster.id){
|
||||||
|
@ -49,12 +49,12 @@ const AlertingUI = (props)=>{
|
||||||
}, [props.history])
|
}, [props.history])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CoreContext.Provider
|
<CoreContext.Provider key={props.selectedCluster.id}
|
||||||
value={{ http: httpClient, isDarkMode, notifications: notifications }}
|
value={{ http: httpClient, isDarkMode, notifications: notifications }}
|
||||||
>
|
>
|
||||||
<Router history={history}>
|
<Router history={history}>
|
||||||
<div style={{background:'#fff'}}>
|
<div style={{background:'#fff'}}>
|
||||||
<AlertingMain title="Alerting" {...props} />
|
<Main title="Alerting" {...props} />
|
||||||
</div>
|
</div>
|
||||||
</Router>
|
</Router>
|
||||||
</CoreContext.Provider>
|
</CoreContext.Provider>
|
||||||
|
|
Loading…
Reference in New Issue