From be78360a40f36dc678f5e6463a5583d17fce5d50 Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Tue, 26 Nov 2024 16:26:18 +0530 Subject: [PATCH] Fixed: Persistent Alert Prompt for Unsaved Changes in Route Details (#267). --- src/views/BrokeringRoute.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/BrokeringRoute.vue b/src/views/BrokeringRoute.vue index 85601e9..46028c9 100644 --- a/src/views/BrokeringRoute.vue +++ b/src/views/BrokeringRoute.vue @@ -280,7 +280,10 @@ onBeforeRouteLeave(async (to) => { message: translate("Do you want to save your changes before leaving this page?"), buttons: [ { - text: translate("Discard") + text: translate("Discard"), + handler: async () => { + hasUnsavedChanges.value = false; + } }, { text: translate("Save"),