Merge pull request #2271 from LeoDanielA01/fix/elevators-route

fix: evaluator navigation by syncing modal visibility with route change
This commit is contained in:
Jannat Patel
2026-03-30 11:04:59 +05:30
committed by GitHub
2 changed files with 3 additions and 0 deletions
@@ -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: {
@@ -43,6 +43,7 @@
? { sections: activeTab.sections }
: {}),
...(activeTab.label == 'Members' ||
activeTab.label == 'Evaluators' ||
activeTab.label == 'Transactions'
? { 'onUpdate:show': (val) => (show = val), show }
: {}),