mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-17 06:08:42 +00:00
16 lines
411 B
Vue
16 lines
411 B
Vue
|
<template>
|
||
|
<BaseModal @cancel="cancel(false)" v-model="isRevealed" readonly>
|
||
|
<template #title> Confirm </template>
|
||
|
<div>
|
||
|
<p>{{ text }}</p>
|
||
|
</div>
|
||
|
<div class="modal-action">
|
||
|
<BaseButton type="submit" @click="confirm(true)"> Confirm </BaseButton>
|
||
|
</div>
|
||
|
</BaseModal>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
const { text, isRevealed, confirm, cancel } = useConfirm();
|
||
|
</script>
|