2021-06-21 10:56:46 +02:00
|
|
|
<script>
|
|
|
|
import { confirmationStore } from "../store"
|
|
|
|
import { Modal, ModalContent } from "@budibase/bbui"
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{#if $confirmationStore.showConfirmation}
|
|
|
|
<Modal fixed on:cancel={confirmationStore.actions.cancel}>
|
|
|
|
<ModalContent
|
2021-06-21 11:46:55 +02:00
|
|
|
title={$confirmationStore.title}
|
2021-06-21 10:56:46 +02:00
|
|
|
onConfirm={confirmationStore.actions.confirm}
|
|
|
|
>
|
|
|
|
{$confirmationStore.text}
|
|
|
|
</ModalContent>
|
|
|
|
</Modal>
|
|
|
|
{/if}
|