1
0
Fork 1
mirror of https://github.com/hay-kot/homebox.git synced 2024-12-28 17:56:29 +00:00
homebox/frontend/components/ModalConfirm.vue

16 lines
411 B
Vue
Raw Normal View History

2022-09-01 22:32:03 +00:00
<template>
<BaseModal v-model="isRevealed" readonly @cancel="cancel(false)">
2022-09-01 22:32:03 +00:00
<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>