diff --git a/src/App.vue b/src/App.vue index 0672e264..8ed03c41 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,8 +18,9 @@ import { DIRECTORY_RESIZER_WIDTH, } from './composables/useDirectoryColumnResize'; import { useThunderbirdShortcuts } from './composables/useThunderbirdShortcuts'; +import { useDowntimeBanner } from './composables/useDowntimeBanner'; import { APP_TITLE } from './app-config'; -import { BUG_REPORT_URL, FEEDBACK_URL } from './defines'; +import { BUG_REPORT_URL, FEEDBACK_URL, loginMessagesUrl } from './defines'; import { useAuthStore } from './stores/auth-store'; import { useMailStore } from './stores/mail-store'; @@ -36,6 +37,7 @@ import type { Palette, Theme } from './constants/settings'; import { shortcutAria, shortcutHint } from './constants/shortcuts'; import AppSpaces from './components/AppSpaces.vue'; +import DowntimeBanner from './components/DowntimeBanner.vue'; import LoginGate from './components/LoginGate.vue'; import FolderTree from './components/FolderTree.vue'; import MessageColumns from './components/MessageColumns.vue'; @@ -180,6 +182,8 @@ watch(activeSpotlight, (id) => { // With 'system' the OS decides, so a manual light/dark button would fight it. const showThemeToggle = computed(() => theme.value !== 'system'); const messageViewMaximized = ref(false); +// One load serves the login gate and the shell, so the banner stays put when the gate gives way. +const { banner } = useDowntimeBanner(loginMessagesUrl()); // Modal dialogs own the keyboard: a single-letter mail shortcut must not // archive or delete the selection behind them, or move focus out of them. // An open beacon card counts as one. @@ -656,7 +660,7 @@ function unwatchSystemTheme() {