mirror of https://github.com/Budibase/budibase.git
6 changed files with 26 additions and 71 deletions
@ -1,51 +0,0 @@ |
|||
<script> |
|||
import Button from "../common/Button.svelte" |
|||
import ActionButton from "../common/ActionButton.svelte" |
|||
import ButtonGroup from "../common/ButtonGroup.svelte" |
|||
import { store } from "../builderStore" |
|||
import Modal from "../common/Modal.svelte" |
|||
import ErrorsBox from "../common/ErrorsBox.svelte" |
|||
|
|||
let confirmDelete = false |
|||
|
|||
const openConfirmDelete = () => { |
|||
confirmDelete = true |
|||
} |
|||
|
|||
const deleteCurrentNode = () => { |
|||
confirmDelete = false |
|||
store.deleteCurrentNode() |
|||
} |
|||
</script> |
|||
|
|||
<div class="root"> |
|||
<div class="button-container"> |
|||
{#if !$store.currentNodeIsNew} |
|||
<ActionButton alert on:click={deleteCurrentNode}>Delete</ActionButton> |
|||
{/if} |
|||
|
|||
<ActionButton color="secondary" on:click={store.saveCurrentNode}> |
|||
Save |
|||
</ActionButton> |
|||
|
|||
<slot /> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
<style> |
|||
.root { |
|||
display: flex; |
|||
width: 100%; |
|||
border-top: 1px solid #ccc; |
|||
box-sizing: border-box; |
|||
position: absolute; |
|||
bottom: 0; |
|||
left: 0; |
|||
background: #fafafa; |
|||
} |
|||
|
|||
.button-container { |
|||
padding: 20px; |
|||
} |
|||
</style> |
|||
Loading…
Reference in new issue