fix SchemaManagementDrawer modals
This commit is contained in:
parent
1c815cbe1a
commit
f41110ec74
|
@ -3,6 +3,12 @@
|
||||||
import { store, backendUiStore } from "builderStore"
|
import { store, backendUiStore } from "builderStore"
|
||||||
import { cloneDeep } from "lodash/fp"
|
import { cloneDeep } from "lodash/fp"
|
||||||
import getIcon from "../common/icon"
|
import getIcon from "../common/icon"
|
||||||
|
import {
|
||||||
|
CreateEditModelModal,
|
||||||
|
CreateEditViewModal,
|
||||||
|
} from "components/database/ModelDataTable/modals"
|
||||||
|
|
||||||
|
const { open, close } = getContext("simple-modal")
|
||||||
|
|
||||||
export let level = 0
|
export let level = 0
|
||||||
export let node
|
export let node
|
||||||
|
@ -23,8 +29,13 @@
|
||||||
|
|
||||||
function selectHierarchyItem(node) {
|
function selectHierarchyItem(node) {
|
||||||
store.selectExistingNode(node.nodeId)
|
store.selectExistingNode(node.nodeId)
|
||||||
const modalType = node.type === "index" ? "VIEW" : "MODEL"
|
open(
|
||||||
backendUiStore.actions.modals.show(modalType)
|
CreateEditViewModal,
|
||||||
|
{
|
||||||
|
onClosed: close,
|
||||||
|
},
|
||||||
|
{ styleContent: { padding: "0" } }
|
||||||
|
)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue