diff --git a/resources/js/Pages/Home/ArchiveHistoryModal/Index.vue b/resources/js/Pages/Home/ArchiveHistoryModal/Index.vue index 6d2fc72..eacc2cd 100644 --- a/resources/js/Pages/Home/ArchiveHistoryModal/Index.vue +++ b/resources/js/Pages/Home/ArchiveHistoryModal/Index.vue @@ -24,7 +24,7 @@ const archiveInfo = ref({ post_in: null, status: null }) -const emits = defineEmits(['historyUpdated']) +const emits = defineEmits(['historyUpdated', 'closeWithoutSave']) const onResetData = () => { archiveInfo.value = { @@ -35,6 +35,10 @@ const onResetData = () => { } } +const onCloseWithoutSave = () => { + emits('closeWithoutSave') + open.value = false +} const patientData = ref({ ...patient.value.info @@ -152,7 +156,7 @@ watch(() => props.patientId, async (newId) => {