Browse Source

feat(gui-v2): link DlgQuickImport

pull/3051/head
Wing-Kam Wong 2 years ago
parent
commit
df872317ff
  1. 5
      packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue

5
packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue

@ -35,6 +35,8 @@ const selectedView = inject(ActiveViewInj)
const showWebhookDrawer = ref(false) const showWebhookDrawer = ref(false)
const quickImportDialog = ref(false)
const exportCsv = async () => { const exportCsv = async () => {
let offset = 0 let offset = 0
let c = 1 let c = 1
@ -117,7 +119,7 @@ const exportCsv = async () => {
<!-- Download as CSV --> <!-- Download as CSV -->
{{ $t('activity.downloadCSV') }} {{ $t('activity.downloadCSV') }}
</div> </div>
<div class="nc-menu-item" @click.stop> <div class="nc-menu-item" @click="quickImportDialog = true">
<MdiUploadIcon /> <MdiUploadIcon />
<!-- Upload CSV --> <!-- Upload CSV -->
{{ $t('activity.uploadCSV') }} {{ $t('activity.uploadCSV') }}
@ -137,6 +139,7 @@ const exportCsv = async () => {
</template> </template>
</a-dropdown> </a-dropdown>
<DlgQuickImport v-if="quickImportDialog" v-model="quickImportDialog" import-type="csv" :import-only="true" />
<WebhookDrawer v-if="showWebhookDrawer" v-model="showWebhookDrawer" /> <WebhookDrawer v-if="showWebhookDrawer" v-model="showWebhookDrawer" />
<a-modal v-model:visible="sharedViewListDlg" title="Shared view list" width="max(900px,60vw)" :footer="null"> <a-modal v-model:visible="sharedViewListDlg" title="Shared view list" width="max(900px,60vw)" :footer="null">

Loading…
Cancel
Save