mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
temp: disable operation sync before refactoring
This commit is contained in:
parent
3843fe9cef
commit
13c24ede28
1 changed files with 34 additions and 32 deletions
|
@ -34,38 +34,40 @@ const columns = [{
|
||||||
edit: {
|
edit: {
|
||||||
type: input
|
type: input
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
title: () => $gettext('OperationSync'),
|
// {
|
||||||
dataIndex: 'operation_sync',
|
// title: () => $gettext('OperationSync'),
|
||||||
sorter: true,
|
// dataIndex: 'operation_sync',
|
||||||
pithy: true,
|
// sorter: true,
|
||||||
edit: {
|
// pithy: true,
|
||||||
type: antSwitch
|
// edit: {
|
||||||
},
|
// type: antSwitch
|
||||||
extra: $gettext('Whether config api regex that will redo on this environment'),
|
// },
|
||||||
customRender: (args: customRender) => {
|
// extra: $gettext('Whether config api regex that will redo on this environment'),
|
||||||
const {operation_sync} = args.record
|
// customRender: (args: customRender) => {
|
||||||
if (operation_sync) {
|
// const {operation_sync} = args.record
|
||||||
return h(Tag, {color: 'success'}, {default: ()=> h('span', $gettext('Yes'))})
|
// if (operation_sync) {
|
||||||
} else {
|
// return h(Tag, {color: 'success'}, {default: ()=> h('span', $gettext('Yes'))})
|
||||||
return h(Tag, {color: 'default'}, {default: ()=> h('span', $gettext('No'))})
|
// } else {
|
||||||
}
|
// return h(Tag, {color: 'default'}, {default: ()=> h('span', $gettext('No'))})
|
||||||
},
|
// }
|
||||||
}, {
|
// },
|
||||||
title: () => $gettext('SyncApiRegex'),
|
// }, {
|
||||||
dataIndex: 'sync_api_regex',
|
// title: () => $gettext('SyncApiRegex'),
|
||||||
sorter: true,
|
// dataIndex: 'sync_api_regex',
|
||||||
pithy: true,
|
// sorter: true,
|
||||||
display: false,
|
// pithy: true,
|
||||||
edit: {
|
// display: false,
|
||||||
type: textarea,
|
// edit: {
|
||||||
show: (data) => {
|
// type: textarea,
|
||||||
const {operation_sync} = data
|
// show: (data) => {
|
||||||
return operation_sync
|
// 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'),
|
// },
|
||||||
}, {
|
// 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) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue