feat(encounter): update ui cancellation + integration

This commit is contained in:
riefive
2025-11-12 09:52:57 +07:00
parent 3b75c06c4b
commit a477829f4a
4 changed files with 31 additions and 4 deletions
@@ -39,6 +39,13 @@ const linkItems: LinkItem[] = [
},
icon: 'i-lucide-circle-x',
},
{
label: 'Hapus',
onClick: () => {
remove()
},
icon: 'i-lucide-trash',
},
]
function detail() {
@@ -64,6 +71,12 @@ function cancel() {
recAction.value = ActionEvents.showCancel
recItem.value = props.rec
}
function remove() {
recId.value = props.rec.id || 0
recAction.value = ActionEvents.showConfirmDelete
recItem.value = props.rec
}
</script>
<template>