From a0e22745837d617fad41848facc186ea93fee02e Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 22 Jul 2022 12:41:32 +0800 Subject: [PATCH] fix(gui-v2): setting import type in onclick --- packages/nc-gui-v2/components/dashboard/TabView.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui-v2/components/dashboard/TabView.vue b/packages/nc-gui-v2/components/dashboard/TabView.vue index 4c007ab0ce..69e073d881 100644 --- a/packages/nc-gui-v2/components/dashboard/TabView.vue +++ b/packages/nc-gui-v2/components/dashboard/TabView.vue @@ -75,8 +75,7 @@ const onEdit = (targetKey: number, action: string) => { v-if="isUIAllowed('csvImport')" key="quick-import-csv" v-t="['a:actions:import-csv']" - @click="fileImportDialog = true" - importType="csv" + @click="fileImportDialog = true; importType = 'csv';" > @@ -88,8 +87,7 @@ const onEdit = (targetKey: number, action: string) => { v-if="isUIAllowed('jsonImport')" key="quick-import-json" v-t="['a:actions:import-json']" - @click="fileImportDialog = true" - importType="json" + @click="fileImportDialog = true; importType = 'json';" > @@ -101,8 +99,8 @@ const onEdit = (targetKey: number, action: string) => { v-if="isUIAllowed('excelImport')" key="quick-import-excel" v-t="['a:actions:import-excel']" - @click="fileImportDialog = true" - importType="excel" + @click="fileImportDialog = true; importType = 'excel'" + >