diff --git a/assets/js/components/Auth/auth.ts b/assets/js/components/Auth/auth.ts index b23f64171..cc73cb0b5 100644 --- a/assets/js/components/Auth/auth.ts +++ b/assets/js/components/Auth/auth.ts @@ -108,7 +108,13 @@ function debounedUpdateAuthStatus() { } // update auth status on reconnect or server restart -watch(() => store.state.offline, debounedUpdateAuthStatus); -watch(() => store.state.startup, debounedUpdateAuthStatus); +watch( + () => store.state.offline, + (offline) => offline && debounedUpdateAuthStatus() +); +watch( + () => store.state.startupCompleted, + (startupCompleted) => startupCompleted && debounedUpdateAuthStatus() +); export default auth; diff --git a/assets/js/components/Footer/OfflineIndicator.vue b/assets/js/components/Footer/OfflineIndicator.vue index 1dcc92b4c..b334c2d82 100644 --- a/assets/js/components/Footer/OfflineIndicator.vue +++ b/assets/js/components/Footer/OfflineIndicator.vue @@ -1,6 +1,6 @@