From b7ce972695f34a4b71da24e3abc1d406ca400a03 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 23 Jul 2022 12:30:02 +0530 Subject: [PATCH] feat(gui-v2): update tab state on table rename Signed-off-by: Pranav C --- .../components/dashboard/TreeView.vue | 21 ++-- .../nc-gui-v2/components/dlg/TableRename.vue | 105 +++++++++--------- packages/nc-gui-v2/composables/useTabs.ts | 21 +++- packages/nc-gui-v2/pages/nc/[projectId].vue | 2 +- 4 files changed, 84 insertions(+), 65 deletions(-) diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index 7ab97d666c..5d4e398fa4 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -113,7 +113,7 @@ const setMenuContext = (type: 'table' | 'main', value?: any) => { } const deleteTable = (table: TableType) => { - $e('c:table:delete'); + $e('c:table:delete') // 'Click Submit to Delete The table' Modal.confirm({ title: `Click Yes to Delete The table : ${table.title}`, @@ -195,7 +195,7 @@ const showRenameTableDlg = (table: TableType) => { {{ $t('objects.tables') }} - + {
@@ -222,8 +222,9 @@ const showRenameTableDlg = (table: TableType) => { @@ -238,12 +239,16 @@ const showRenameTableDlg = (table: TableType) => { diff --git a/packages/nc-gui-v2/components/dlg/TableRename.vue b/packages/nc-gui-v2/components/dlg/TableRename.vue index a50170317c..2f72a74a7a 100644 --- a/packages/nc-gui-v2/components/dlg/TableRename.vue +++ b/packages/nc-gui-v2/components/dlg/TableRename.vue @@ -1,90 +1,89 @@