mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-18 21:16:31 +00:00
15 lines
411 B
Vue
15 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>
|