Skip to content

Commit 9542a9b

Browse files
ITestInProdTimVanOnckelen
authored andcommitted
feat(web): disable opening image and library sub-items by default (immich-app#13729)
Disable opening image and library sub-items by default Disable both the Image Settings and the External Library sub-items by default. This aligns with auth other settings sub-items showing as collapsed by default.
1 parent e99b193 commit 9542a9b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: web/src/lib/components/admin-page/settings/image/image-settings.svelte

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
export let disabled = false;
2020
export let onReset: SettingsResetEvent;
2121
export let onSave: SettingsSaveEvent;
22+
export let openByDefault = false;
2223
</script>
2324

2425
<div>
@@ -29,7 +30,7 @@
2930
key="thumbnail-settings"
3031
title={$t('admin.image_thumbnail_title')}
3132
subtitle={$t('admin.image_thumbnail_description')}
32-
isOpen={true}
33+
isOpen={openByDefault}
3334
>
3435
<SettingSelect
3536
label={$t('admin.image_format')}
@@ -75,7 +76,7 @@
7576
key="preview-settings"
7677
title={$t('admin.image_preview_title')}
7778
subtitle={$t('admin.image_preview_description')}
78-
isOpen={true}
79+
isOpen={openByDefault}
7980
>
8081
<SettingSelect
8182
label={$t('admin.image_format')}

Diff for: web/src/lib/components/admin-page/settings/library-settings/library-settings.svelte

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
export let disabled = false;
1919
export let onReset: SettingsResetEvent;
2020
export let onSave: SettingsSaveEvent;
21+
export let openByDefault = false;
2122
2223
$: cronExpressionOptions = [
2324
{ title: $t('interval.night_at_midnight'), expression: '0 0 * * *' },
@@ -35,7 +36,7 @@
3536
key="library-watching"
3637
title={$t('admin.library_watching_settings')}
3738
subtitle={$t('admin.library_watching_settings_description')}
38-
isOpen
39+
isOpen={openByDefault}
3940
>
4041
<div class="ml-4 mt-4 flex flex-col gap-4">
4142
<SettingSwitch
@@ -50,7 +51,7 @@
5051
key="library-scanning"
5152
title={$t('admin.library_scanning')}
5253
subtitle={$t('admin.library_scanning_description')}
53-
isOpen
54+
isOpen={openByDefault}
5455
>
5556
<div class="ml-4 mt-4 flex flex-col gap-4">
5657
<SettingSwitch

0 commit comments

Comments
 (0)