Browse Source

change base id to current baseId as computed constant from MetaInj ref

pull/5164/head
Semjon Geist 2 years ago
parent
commit
83a8128444
  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,
IsLockedInj,
IsPublicInj,
MetaInj,
extractSdkResponseErrorMsg,
inject,
message,
@ -57,7 +58,10 @@ const quickImportDialogs: Record<typeof quickImportDialogTypes[number], Ref<bool
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(() => {
switch (selectedView.value?.lock_type) {
@ -248,7 +252,7 @@ useMenuCloseOnEsc(open)
:key="type"
v-model="quickImportDialogs[type].value"
:import-type="type"
:base-id="bases[0].id"
:base-id="currentBaseId"
:import-data-only="true"
/>

Loading…
Cancel
Save