web/settings/advanced: hide reset settings button if there are no settings
This commit is contained in:
parent
d1930c1dbc
commit
585ebd9cb4
2 changed files with 7 additions and 4 deletions
|
@ -105,9 +105,9 @@
|
|||
<IconFileImport /> {$t("settings.advanced.import")}
|
||||
</ActionButton>
|
||||
{#if $storedSettings.schemaVersion}
|
||||
<ActionButton id="export-settings" click={exportSettings}>
|
||||
<IconFileExport /> {$t("settings.advanced.export")}
|
||||
</ActionButton>
|
||||
<ActionButton id="export-settings" click={exportSettings}>
|
||||
<IconFileExport /> {$t("settings.advanced.export")}
|
||||
</ActionButton>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
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";
|
||||
</script>
|
||||
|
||||
<SettingsCategory sectionId="debug" title={$t("settings.advanced.debug")}>
|
||||
|
@ -18,5 +19,7 @@
|
|||
|
||||
<SettingsCategory sectionId="data" title={$t("settings.advanced.data")}>
|
||||
<TransferSettings />
|
||||
<ResetSettingsButton />
|
||||
{#if $storedSettings.schemaVersion}
|
||||
<ResetSettingsButton />
|
||||
{/if}
|
||||
</SettingsCategory>
|
||||
|
|
Loading…
Reference in a new issue