@@ -34,38 +34,40 @@ const columns = [{
3434 edit: {
3535 type: input
3636 }
37- }, {
38- title : () => $gettext (' OperationSync' ),
39- dataIndex: ' operation_sync' ,
40- sorter: true ,
41- pithy: true ,
42- edit: {
43- type: antSwitch
44- },
45- extra: $gettext (' Whether config api regex that will redo on this environment' ),
46- customRender : (args : customRender ) => {
47- const {operation_sync} = args .record
48- if (operation_sync ) {
49- return h (Tag , {color: ' success' }, {default : ()=> h (' span' , $gettext (' Yes' ))})
50- } else {
51- return h (Tag , {color: ' default' }, {default : ()=> h (' span' , $gettext (' No' ))})
52- }
53- },
54- }, {
55- title : () => $gettext (' SyncApiRegex' ),
56- dataIndex: ' sync_api_regex' ,
57- sorter: true ,
58- pithy: true ,
59- display: false ,
60- edit: {
61- type: textarea ,
62- show : (data ) => {
63- const {operation_sync} = data
64- return operation_sync
65- }
66- },
67- extra: $gettext (' Such as Reload and Configs, regex can configure as `/api/nginx/reload|/api/nginx/test|/api/config/.+`, please see system api' ),
68- }, {
37+ },
38+ // {
39+ // title: () => $gettext('OperationSync'),
40+ // dataIndex: 'operation_sync',
41+ // sorter: true,
42+ // pithy: true,
43+ // edit: {
44+ // type: antSwitch
45+ // },
46+ // extra: $gettext('Whether config api regex that will redo on this environment'),
47+ // customRender: (args: customRender) => {
48+ // const {operation_sync} = args.record
49+ // if (operation_sync) {
50+ // return h(Tag, {color: 'success'}, {default: ()=> h('span', $gettext('Yes'))})
51+ // } else {
52+ // return h(Tag, {color: 'default'}, {default: ()=> h('span', $gettext('No'))})
53+ // }
54+ // },
55+ // }, {
56+ // title: () => $gettext('SyncApiRegex'),
57+ // dataIndex: 'sync_api_regex',
58+ // sorter: true,
59+ // pithy: true,
60+ // display: false,
61+ // edit: {
62+ // type: textarea,
63+ // show: (data) => {
64+ // const {operation_sync} = data
65+ // return operation_sync
66+ // }
67+ // },
68+ // extra: $gettext('Such as Reload and Configs, regex can configure as `/api/nginx/reload|/api/nginx/test|/api/config/.+`, please see system api'),
69+ // },
70+ {
6971 title : () => $gettext (' Status' ),
7072 dataIndex: ' status' ,
7173 customRender : (args : customRender ) => {
0 commit comments