refactor(editor): remove database-service (#9769)

close: BS-2426
This commit is contained in:
zzj3720
2025-01-18 05:36:15 +00:00
parent ad814a0f4f
commit 95c0f59d96
30 changed files with 448 additions and 427 deletions

View File

@@ -123,9 +123,7 @@ export class MobileTableColumnHeader extends SignalWatcher(
menu.action({
name: 'Hide In View',
prefix: ViewIcon(),
hide: () =>
this.column.hide$.value ||
this.column.type$.value === 'title',
hide: () => !this.column.hideCanSet,
select: () => {
this.column.hideSet(true);
},
@@ -220,8 +218,7 @@ export class MobileTableColumnHeader extends SignalWatcher(
menu.action({
name: 'Duplicate',
prefix: DuplicateIcon(),
hide: () =>
!this.column.duplicate || this.column.type$.value === 'title',
hide: () => !this.column.canDuplicate,
select: () => {
this.column.duplicate?.();
},
@@ -229,8 +226,7 @@ export class MobileTableColumnHeader extends SignalWatcher(
menu.action({
name: 'Delete',
prefix: DeleteIcon(),
hide: () =>
!this.column.delete || this.column.type$.value === 'title',
hide: () => !this.column.canDelete,
select: () => {
this.column.delete?.();
},