Skip to content

Commit 0a807f2

Browse files
committed
feat: add watcher to reset success alert on route changes in GlobalSettings component
1 parent 99e8ae8 commit 0a807f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

services/frontend/src/views/GlobalSettings.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ function createInitialValues(settings: Setting[]) {
106106
return values
107107
}
108108
109+
// Watch for route changes and reset success alert
110+
watch(() => route.params.groupId, () => {
111+
showSuccessAlert.value = false
112+
})
113+
109114
// Watch for group changes and set form values
110115
watch(() => selectedGroup.value, (newGroup) => {
111116
if (newGroup?.settings) {

0 commit comments

Comments
 (0)