feat: add Confirmation modal to prompt users to confirm or cancel dangerous actions

This commit is contained in:
SauceyRed 2025-08-16 11:59:48 +02:00
commit 78b7732411
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7
3 changed files with 64 additions and 0 deletions

View file

@ -25,6 +25,11 @@ onMounted(() => {
if (props.onCancel) dialog.value.addEventListener("cancel", props.onCancel);
}
});
function close() { dialog.value?.close() }
defineExpose({ close });
</script>
<style scoped>