feat: collapse admin settings by default

This commit is contained in:
3252a8
2026-05-24 00:01:18 +03:00
parent f0eb291f56
commit 939c40ccbf
2 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -701,7 +701,7 @@
{/if}
{#if active === "settings"}
<SettingsSection {at} {isCompact} {onSettingsSaved} {currentLang} />
<SettingsSection {at} {onSettingsSaved} {currentLang} />
{/if}
</div>
{/key}
@@ -22,7 +22,6 @@
export let at;
export let onSettingsSaved;
export let isCompact = false;
export let currentLang = "ru";
const settingsStore = getContext("settingsStore");
@@ -49,14 +48,7 @@
);
onMount(() => {
settingsStore.loadSettings().then(() => {
if ($settingsStore.settingsSections.length) {
const ids = $settingsStore.settingsSections
.filter((s) => s.id !== "appearance")
.map((s) => s.id);
settingsOpenSections = isCompact ? ids.slice(0, 1) : ids.slice();
}
});
settingsStore.loadSettings();
});
onDestroy(() => {