Browse Source

fix(gui-v2): setting import type in onclick

pull/2795/head
Wing-Kam Wong 2 years ago
parent
commit
a0e2274583
  1. 10
      packages/nc-gui-v2/components/dashboard/TabView.vue

10
packages/nc-gui-v2/components/dashboard/TabView.vue

@ -75,8 +75,7 @@ const onEdit = (targetKey: number, action: string) => {
v-if="isUIAllowed('csvImport')" v-if="isUIAllowed('csvImport')"
key="quick-import-csv" key="quick-import-csv"
v-t="['a:actions:import-csv']" v-t="['a:actions:import-csv']"
@click="fileImportDialog = true" @click="fileImportDialog = true; importType = 'csv';"
importType="csv"
> >
<span class="flex items-center gap-2"> <span class="flex items-center gap-2">
<MdiCsvIcon class="text-primary" /> <MdiCsvIcon class="text-primary" />
@ -88,8 +87,7 @@ const onEdit = (targetKey: number, action: string) => {
v-if="isUIAllowed('jsonImport')" v-if="isUIAllowed('jsonImport')"
key="quick-import-json" key="quick-import-json"
v-t="['a:actions:import-json']" v-t="['a:actions:import-json']"
@click="fileImportDialog = true" @click="fileImportDialog = true; importType = 'json';"
importType="json"
> >
<span class="flex items-center gap-2"> <span class="flex items-center gap-2">
<MdiJSONIcon class="text-primary" /> <MdiJSONIcon class="text-primary" />
@ -101,8 +99,8 @@ const onEdit = (targetKey: number, action: string) => {
v-if="isUIAllowed('excelImport')" v-if="isUIAllowed('excelImport')"
key="quick-import-excel" key="quick-import-excel"
v-t="['a:actions:import-excel']" v-t="['a:actions:import-excel']"
@click="fileImportDialog = true" @click="fileImportDialog = true; importType = 'excel'"
importType="excel"
> >
<span class="flex items-center gap-2"> <span class="flex items-center gap-2">
<MdiExcelIcon class="text-primary" /> <MdiExcelIcon class="text-primary" />

Loading…
Cancel
Save