Browse Source

remove filter from useProject and added to openQuickImportDialog

pull/5159/head
Semjon Geist 2 years ago
parent
commit
d6ba711ec8
  1. 5
      packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue

5
packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue

@ -12,7 +12,6 @@ import {
useUIPermission,
watch,
} from '#imports'
import {BaseType} from "nocodb-sdk";
const dropZone = ref<HTMLDivElement>()
@ -99,7 +98,7 @@ function openQuickImportDialog(type: QuickImportTypes, file: File) {
'modelValue': isOpen,
'importType': type,
'onUpdate:modelValue': closeDialog,
'baseId': bases.value[0].id,
'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id,
})
vNode.value?.component?.exposed?.handleChange({
@ -130,7 +129,7 @@ function openCreateTable() {
const { close } = useDialog(resolveComponent('DlgTableCreate'), {
'modelValue': isOpen,
'onUpdate:modelValue': closeDialog,
'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id,
'baseId': bases.value[0].id,
})
function closeDialog() {

Loading…
Cancel
Save