From 5e9b17eb0428aba974ff9d04dd533f65652101c5 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Mon, 25 Jul 2022 16:36:13 +0530 Subject: [PATCH] refactor/gui-v2-settings-modal-rebase-issues-solved-and-pr-reviews-followed --- packages/nc-gui-v2/components.d.ts | 3 ++- .../components/dashboard/TreeView.vue | 3 ++- .../dashboard/settings/AuditTab.vue | 2 +- .../dashboard/settings/SettingsModal.vue | 2 +- packages/nc-gui-v2/package-lock.json | 19 +++++++++++++++++++ 5 files changed, 25 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 1bdea8dc28..5e5f7425e2 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -46,8 +46,9 @@ declare module '@vue/runtime-core' { ATabs: typeof import('ant-design-vue/es')['Tabs'] ATag: typeof import('ant-design-vue/es')['Tag'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] + ATypographyTitle: typeof import('ant-design-vue/es')['TypographyTitle'] AUploadDragger: typeof import('ant-design-vue/es')['UploadDragger'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } -} \ No newline at end of file +} diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index ee49e992ae..37d97671bf 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -19,6 +19,7 @@ import MdiPlus from '~icons/mdi/plus-circle-outline' import MdiDrag from '~icons/mdi/drag-vertical' import MdiMenuIcon from '~icons/mdi/dots-vertical' import MdiAPIDocIcon from '~icons/mdi/open-in-new' +import SettingsModal from '~/components/dashboard/settings/SettingsModal.vue' const { addTab } = useTabs() const toast = useToast() @@ -290,7 +291,7 @@ const addTableTab = (table: TableType) => { {{ $t('title.teamAndSettings') }} - Team and settings + diff --git a/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue b/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue index 18045ead4f..a11e763013 100644 --- a/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue +++ b/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue @@ -43,7 +43,7 @@ onMounted(async () => { } }) -const tableHeaderRenderer = (label: string) => (value: { text: string }) => h('div', { class: 'text-gray-500' }, label) +const tableHeaderRenderer = (label: string) => () => h('div', { class: 'text-gray-500' }, label) const columns = [ { diff --git a/packages/nc-gui-v2/components/dashboard/settings/SettingsModal.vue b/packages/nc-gui-v2/components/dashboard/settings/SettingsModal.vue index b894442a9e..38807b799e 100644 --- a/packages/nc-gui-v2/components/dashboard/settings/SettingsModal.vue +++ b/packages/nc-gui-v2/components/dashboard/settings/SettingsModal.vue @@ -131,7 +131,7 @@ watch(