feat(common): improve confirmation modal api

This commit is contained in:
2026-01-30 23:14:51 +01:00
parent 8e7895ae59
commit db4b5cc9f9
7 changed files with 27 additions and 30 deletions

View File

@@ -18,12 +18,12 @@ const CLIP_HEIGHT = LOGICAL_HEIGHT - BOTTOM_BAR_HEIGHT;
const handleActivateA = () => {
confirmationModal.onConfirm?.();
confirmationModal.close();
confirmationModal.close("confirm");
};
const handleActivateB = () => {
confirmationModal.onCancel?.();
confirmationModal.close();
confirmationModal.close("cancel");
};
onRender((ctx) => {
@@ -45,7 +45,7 @@ onRender((ctx) => {
}, 100);
onUnmounted(() => {
confirmationModal.close();
confirmationModal.close("cancel");
});
</script>