From b3954b9209c27aa7cab67edd6e9a1f0b69a620ad Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 30 Aug 2024 17:17:29 +0600 Subject: [PATCH] web/ResetSettingsButton: move to settings subdir & reduce timeout to 2s --- .../{buttons => settings}/ResetSettingsButton.svelte | 2 +- web/src/routes/settings/advanced/+page.svelte | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) rename web/src/components/{buttons => settings}/ResetSettingsButton.svelte (97%) diff --git a/web/src/components/buttons/ResetSettingsButton.svelte b/web/src/components/settings/ResetSettingsButton.svelte similarity index 97% rename from web/src/components/buttons/ResetSettingsButton.svelte rename to web/src/components/settings/ResetSettingsButton.svelte index 63d8ec43..9a2060b8 100644 --- a/web/src/components/buttons/ResetSettingsButton.svelte +++ b/web/src/components/settings/ResetSettingsButton.svelte @@ -23,7 +23,7 @@ text: $t("button.reset"), color: "red", main: true, - timeout: 5000, + timeout: 2000, action: () => resetSettings(), }, ], diff --git a/web/src/routes/settings/advanced/+page.svelte b/web/src/routes/settings/advanced/+page.svelte index 79d90c79..0c8ecc05 100644 --- a/web/src/routes/settings/advanced/+page.svelte +++ b/web/src/routes/settings/advanced/+page.svelte @@ -1,11 +1,12 @@