From f93f3cd55886537334fa35176ba22341a17316de Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 21 Jul 2024 22:49:26 +0600 Subject: [PATCH] web/DownloadButton: fallback if status isn't supported --- web/src/components/save/buttons/DownloadButton.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/src/components/save/buttons/DownloadButton.svelte b/web/src/components/save/buttons/DownloadButton.svelte index 40b78942..55657ddf 100644 --- a/web/src/components/save/buttons/DownloadButton.svelte +++ b/web/src/components/save/buttons/DownloadButton.svelte @@ -118,6 +118,14 @@ }) } } + + changeDownloadButton("error"); + restoreDownloadButton(); + + return createDialog({ + ...defaultErrorPopup as DialogInfo, + bodyText: "unknown/unsupported status" + }) };