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

Loading…
Cancel
Save