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')"
key="quick-import-csv"
v-t="['a:actions:import-csv']"
@click="fileImportDialog = true"
importType="csv"
@click="fileImportDialog = true; importType = 'csv';"
>
<span class="flex items-center gap-2">
<MdiCsvIcon class="text-primary" />
@ -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';"
>
<span class="flex items-center gap-2">
<MdiJSONIcon class="text-primary" />
@ -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'"
>
<span class="flex items-center gap-2">
<MdiExcelIcon class="text-primary" />

Loading…
Cancel
Save