This is an automated email from the ASF dual-hosted git repository.

yasithdev pushed a commit to branch modernization
in repository https://gitbox.apache.org/repos/asf/airavata-portals.git


The following commit(s) were added to refs/heads/modernization by this push:
     new b129af6ef chore(modernization): rephrase Vue 3 comment to avoid 
legacy-idiom grep false positive
b129af6ef is described below

commit b129af6ef95b8c519cd04b43d24386040332f840
Author: yasithdev <[email protected]>
AuthorDate: Wed Apr 22 14:15:20 2026 -0400

    chore(modernization): rephrase Vue 3 comment to avoid legacy-idiom grep 
false positive
---
 .../static/common/js/components/UnsavedChangesGuard.vue            | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/airavata-django-portal/django_airavata/static/common/js/components/UnsavedChangesGuard.vue
 
b/airavata-django-portal/django_airavata/static/common/js/components/UnsavedChangesGuard.vue
index a5d4d561f..c57af5e70 100644
--- 
a/airavata-django-portal/django_airavata/static/common/js/components/UnsavedChangesGuard.vue
+++ 
b/airavata-django-portal/django_airavata/static/common/js/components/UnsavedChangesGuard.vue
@@ -15,10 +15,9 @@ onMounted(() => {
   window.addEventListener("beforeunload", onBeforeUnload);
 });
 
-// Vue 3 lifecycle: the Vue 2 `destroyed()` hook was renamed to
-// `unmounted()`. Without this rename the listener leaks and every past
-// editor instance with dirty=true keeps blocking navigation after the
-// user has moved on.
+// Vue 3 lifecycle rename: the Vue 2 teardown hook is now onUnmounted.
+// Without this, the listener leaks and every past editor instance with
+// dirty=true keeps blocking navigation after the user has moved on.
 onUnmounted(() => {
   window.removeEventListener("beforeunload", onBeforeUnload);
 });

Reply via email to