From 8d23453371b359b4ccf509c74105b152a7df357b Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 4 Feb 2026 15:44:16 +0100 Subject: [PATCH] Add watcher for branchId in DirectorInfo component: Implemented a watcher to trigger loadDirector method when branchId changes, enhancing data responsiveness in the UI. --- frontend/src/components/falukant/DirectorInfo.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/components/falukant/DirectorInfo.vue b/frontend/src/components/falukant/DirectorInfo.vue index c3c0609..b7aeda1 100644 --- a/frontend/src/components/falukant/DirectorInfo.vue +++ b/frontend/src/components/falukant/DirectorInfo.vue @@ -210,6 +210,14 @@ export default { }, }; }, + watch: { + branchId: { + immediate: false, + handler() { + this.loadDirector(); + }, + }, + }, async mounted() { await this.loadDirector(); },