Browse Source

Merge branch 'pr_xlsx_upload' of https://github.com/semmjon/nocodb into pr/5164

pull/5164/head
Wing-Kam Wong 2 years ago
parent
commit
b184d931f2
  1. 8
      packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue

8
packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue

@ -4,6 +4,7 @@ import {
ActiveViewInj, ActiveViewInj,
IsLockedInj, IsLockedInj,
IsPublicInj, IsPublicInj,
MetaInj,
extractSdkResponseErrorMsg, extractSdkResponseErrorMsg,
inject, inject,
message, message,
@ -57,7 +58,10 @@ const quickImportDialogs: Record<typeof quickImportDialogTypes[number], Ref<bool
const { isUIAllowed } = useUIPermission() const { isUIAllowed } = useUIPermission()
const { bases, isSharedBase } = useProject() const { isSharedBase } = useProject()
const meta = inject(MetaInj, ref())
const currentBaseId = computed(() => meta.value?.base_id)
const Icon = computed(() => { const Icon = computed(() => {
switch (selectedView.value?.lock_type) { switch (selectedView.value?.lock_type) {
@ -248,7 +252,7 @@ useMenuCloseOnEsc(open)
:key="type" :key="type"
v-model="quickImportDialogs[type].value" v-model="quickImportDialogs[type].value"
:import-type="type" :import-type="type"
:base-id="bases[0].id" :base-id="currentBaseId"
:import-data-only="true" :import-data-only="true"
/> />

Loading…
Cancel
Save