temp: disable operation sync before refactoring

This commit is contained in:
0xJacky 2023-11-10 21:34:27 +08:00
parent 3843fe9cef
commit 13c24ede28
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0

View file

@ -34,38 +34,40 @@ const columns = [{
edit: { edit: {
type: input type: input
} }
}, {
title: () => $gettext('OperationSync'),
dataIndex: 'operation_sync',
sorter: true,
pithy: true,
edit: {
type: antSwitch
}, },
extra: $gettext('Whether config api regex that will redo on this environment'), // {
customRender: (args: customRender) => { // title: () => $gettext('OperationSync'),
const {operation_sync} = args.record // dataIndex: 'operation_sync',
if (operation_sync) { // sorter: true,
return h(Tag, {color: 'success'}, {default: ()=> h('span', $gettext('Yes'))}) // pithy: true,
} else { // edit: {
return h(Tag, {color: 'default'}, {default: ()=> h('span', $gettext('No'))}) // type: antSwitch
} // },
}, // extra: $gettext('Whether config api regex that will redo on this environment'),
}, { // customRender: (args: customRender) => {
title: () => $gettext('SyncApiRegex'), // const {operation_sync} = args.record
dataIndex: 'sync_api_regex', // if (operation_sync) {
sorter: true, // return h(Tag, {color: 'success'}, {default: ()=> h('span', $gettext('Yes'))})
pithy: true, // } else {
display: false, // return h(Tag, {color: 'default'}, {default: ()=> h('span', $gettext('No'))})
edit: { // }
type: textarea, // },
show: (data) => { // }, {
const {operation_sync} = data // title: () => $gettext('SyncApiRegex'),
return operation_sync // dataIndex: 'sync_api_regex',
} // sorter: true,
}, // pithy: true,
extra: $gettext('Such as Reload and Configs, regex can configure as `/api/nginx/reload|/api/nginx/test|/api/config/.+`, please see system api'), // display: false,
}, { // edit: {
// type: textarea,
// show: (data) => {
// const {operation_sync} = data
// return operation_sync
// }
// },
// extra: $gettext('Such as Reload and Configs, regex can configure as `/api/nginx/reload|/api/nginx/test|/api/config/.+`, please see system api'),
// },
{
title: () => $gettext('Status'), title: () => $gettext('Status'),
dataIndex: 'status', dataIndex: 'status',
customRender: (args: customRender) => { customRender: (args: customRender) => {