tidy up
This commit is contained in:
parent
33a2dbd275
commit
125af724e5
|
@ -1,35 +0,0 @@
|
||||||
<script>
|
|
||||||
import Modal from "../../../common/Modal.svelte"
|
|
||||||
import { store } from "../../../builderStore"
|
|
||||||
import ActionButton from "../../../common/ActionButton.svelte"
|
|
||||||
import * as api from "../api"
|
|
||||||
|
|
||||||
export let onClosed
|
|
||||||
|
|
||||||
let databaseName
|
|
||||||
|
|
||||||
// async function deleteDatabase() {
|
|
||||||
// const response = await api.deleteDatabase($)
|
|
||||||
// store.createDatabaseForApp(response)
|
|
||||||
// onClosed()
|
|
||||||
// }
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
Are you sure you want to delete {database}?
|
|
||||||
<footer>
|
|
||||||
<ActionButton disabled={!databaseName} on:click={deleteDatabase}>
|
|
||||||
Delete
|
|
||||||
</ActionButton>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
padding: 20px;
|
|
||||||
width: 100%;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
background: #fafafa;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -4,4 +4,3 @@ export { default as CreateEditModelModal } from "./CreateEditModel.svelte"
|
||||||
export { default as CreateEditViewModal } from "./CreateEditView.svelte"
|
export { default as CreateEditViewModal } from "./CreateEditView.svelte"
|
||||||
export { default as CreateDatabaseModal } from "./CreateDatabase.svelte"
|
export { default as CreateDatabaseModal } from "./CreateDatabase.svelte"
|
||||||
export { default as CreateUserModal } from "./CreateUser.svelte"
|
export { default as CreateUserModal } from "./CreateUser.svelte"
|
||||||
export { default as DeleteDatabaseModal } from "./DeleteDatabase.svelte"
|
|
||||||
|
|
Loading…
Reference in New Issue