From 3d8d4fd92137b485a8c94a175730df92e6b1d01d Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 4 Feb 2026 12:00:00 +0100 Subject: [PATCH] Show error overlay with link to services view if filemanager addon is down --- dashboard/src/components/FileManager.vue | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/dashboard/src/components/FileManager.vue b/dashboard/src/components/FileManager.vue index ae6a40d47..8e5bbcb85 100644 --- a/dashboard/src/components/FileManager.vue +++ b/dashboard/src/components/FileManager.vue @@ -9,6 +9,7 @@ const profileModel = ProfileModel.create(); const offlineOverlay = useTemplateRef('offlineOverlay'); const ready = ref(false); +const serviceDown = ref(false); function onOnline() { ready.value = true; @@ -24,6 +25,9 @@ fetcher.globalOptions.errorHook = (error) => { // re-login will make the code get a new token if (error.status === 401) return profileModel.logout(); + // if sftp addon is down, tell the user + if (error.status === 424) return serviceDown.value = true; + if (error.status === 500 || error.status === 501) { // actual internal server error, most likely a bug or timeout log to console only to not alert the user if (!ready.value) { @@ -48,6 +52,23 @@ onMounted(() => { + + \ No newline at end of file