mirror of https://github.com/Budibase/budibase.git
7 changed files with 46 additions and 53 deletions
@ -1,23 +0,0 @@ |
|||||
<script> |
|
||||
import Modal from "../../common/Modal.svelte" |
|
||||
import ActionButton from "../../common/ActionButton.svelte" |
|
||||
import * as api from "./api" |
|
||||
|
|
||||
export let modalOpen = false |
|
||||
|
|
||||
let recordInfo = {} |
|
||||
|
|
||||
const onClosed = () => (modalOpen = false) |
|
||||
</script> |
|
||||
|
|
||||
<Modal {onClosed} isOpen={modalOpen}> |
|
||||
|
|
||||
<div class="actions"> |
|
||||
<ActionButton alert on:click={onClosed}>Cancel</ActionButton> |
|
||||
<ActionButton |
|
||||
disabled={false} |
|
||||
on:click={() => api.createNewRecord(recordInfo)}> |
|
||||
Save |
|
||||
</ActionButton> |
|
||||
</div> |
|
||||
</Modal> |
|
||||
Loading…
Reference in new issue