|
|
@ -12,6 +12,7 @@ import { |
|
|
|
useUIPermission, |
|
|
|
useUIPermission, |
|
|
|
watch, |
|
|
|
watch, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
|
|
|
|
import {BaseType} from "nocodb-sdk"; |
|
|
|
|
|
|
|
|
|
|
|
const dropZone = ref<HTMLDivElement>() |
|
|
|
const dropZone = ref<HTMLDivElement>() |
|
|
|
|
|
|
|
|
|
|
@ -129,7 +130,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[0].id, |
|
|
|
'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
function closeDialog() { |
|
|
|
function closeDialog() { |
|
|
|