This commit is contained in:
Martin McKeaveney 2020-03-31 17:58:47 +01:00
parent 33a2dbd275
commit 125af724e5
2 changed files with 0 additions and 36 deletions

View File

@ -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>

View File

@ -4,4 +4,3 @@ export { default as CreateEditModelModal } from "./CreateEditModel.svelte"
export { default as CreateEditViewModal } from "./CreateEditView.svelte"
export { default as CreateDatabaseModal } from "./CreateDatabase.svelte"
export { default as CreateUserModal } from "./CreateUser.svelte"
export { default as DeleteDatabaseModal } from "./DeleteDatabase.svelte"