feat: community backends page

This commit is contained in:
jialin
2026-01-30 20:48:55 +08:00
committed by Lawrence Li
parent 2dab5093dc
commit b6bd9cd7dd
22 changed files with 783 additions and 124 deletions
+20 -20
View File
@@ -82,26 +82,26 @@ export const backendActions = [
locale: true,
icon: icons.Yaml
},
{
label: 'common.button.enable',
value: 'enable',
key: 'enable',
locale: true,
icon: icons.Charger,
show: (record: any) =>
!record.enabled &&
record.backend_source === BackendSourceValueMap.COMMUNITY
},
{
label: 'common.button.disable',
value: 'disable',
key: 'disable',
locale: true,
icon: icons.Disabled,
show: (record: any) =>
record.enabled &&
record.backend_source === BackendSourceValueMap.COMMUNITY
},
// {
// label: 'common.button.enable',
// value: 'enable',
// key: 'enable',
// locale: true,
// icon: icons.Charger,
// show: (record: any) =>
// !record.enabled &&
// record.backend_source === BackendSourceValueMap.COMMUNITY
// },
// {
// label: 'common.button.disable',
// value: 'disable',
// key: 'disable',
// locale: true,
// icon: icons.Disabled,
// show: (record: any) =>
// record.enabled &&
// record.backend_source === BackendSourceValueMap.COMMUNITY
// },
{
label: 'common.button.delete',
value: 'delete',