From 79441ae09c808e6d8b9b716b6dcab6cec128403f Mon Sep 17 00:00:00 2001 From: LEO DANIEL A Date: Sat, 28 Mar 2026 16:43:30 +0530 Subject: [PATCH] fix: evaluator navigation by syncing modal visibility with route change --- frontend/src/components/Settings/Evaluators.vue | 2 ++ frontend/src/components/Settings/Settings.vue | 1 + 2 files changed, 3 insertions(+) diff --git a/frontend/src/components/Settings/Evaluators.vue b/frontend/src/components/Settings/Evaluators.vue index 8e4ded97..01840017 100644 --- a/frontend/src/components/Settings/Evaluators.vue +++ b/frontend/src/components/Settings/Evaluators.vue @@ -137,6 +137,7 @@ import NewMemberModal from '@/components/Modals/NewMemberModal.vue' import AddEvaluatorModal from '@/components/Modals/AddEvaluatorModal.vue' const search = ref('') +const show = defineModel('show') const showExistingUser = ref(false) const showNewEvaluator = ref(false) const router = useRouter() @@ -173,6 +174,7 @@ watch(search, () => { }) const openProfile = (username: string) => { + show.value = false router.push({ name: 'Profile', params: { diff --git a/frontend/src/components/Settings/Settings.vue b/frontend/src/components/Settings/Settings.vue index d5685bdb..aa9c65d7 100644 --- a/frontend/src/components/Settings/Settings.vue +++ b/frontend/src/components/Settings/Settings.vue @@ -43,6 +43,7 @@ ? { sections: activeTab.sections } : {}), ...(activeTab.label == 'Members' || + activeTab.label == 'Evaluators' || activeTab.label == 'Transactions' ? { 'onUpdate:show': (val) => (show = val), show } : {}),