forked from mirrors/homebox
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>
|