web/ResetSettingsButton: move to settings subdir & reduce timeout to 2s

This commit is contained in:
wukko 2024-08-30 17:17:29 +06:00
parent 3cdd615734
commit b3954b9209
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 6 additions and 5 deletions

View file

@ -23,7 +23,7 @@
text: $t("button.reset"),
color: "red",
main: true,
timeout: 5000,
timeout: 2000,
action: () => resetSettings(),
},
],

View file

@ -1,11 +1,12 @@
<script lang="ts">
import { t } from "$lib/i18n/translations";
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
import ResetSettingsButton from "$components/buttons/ResetSettingsButton.svelte";
import TransferSettings from "$components/settings/TransferSettings.svelte";
import { storedSettings } from "$lib/state/settings";
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
import TransferSettings from "$components/settings/TransferSettings.svelte";
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
import ResetSettingsButton from "$components/settings/ResetSettingsButton.svelte";
</script>
<SettingsCategory sectionId="debug" title={$t("settings.advanced.debug")}>