mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
feat(web): disable opening image and library sub-items by default (#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.
This commit is contained in:
parent
a39a1cfffa
commit
0230dc284b
2 changed files with 6 additions and 4 deletions
|
@ -19,6 +19,7 @@
|
||||||
export let disabled = false;
|
export let disabled = false;
|
||||||
export let onReset: SettingsResetEvent;
|
export let onReset: SettingsResetEvent;
|
||||||
export let onSave: SettingsSaveEvent;
|
export let onSave: SettingsSaveEvent;
|
||||||
|
export let openByDefault = false;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -29,7 +30,7 @@
|
||||||
key="thumbnail-settings"
|
key="thumbnail-settings"
|
||||||
title={$t('admin.image_thumbnail_title')}
|
title={$t('admin.image_thumbnail_title')}
|
||||||
subtitle={$t('admin.image_thumbnail_description')}
|
subtitle={$t('admin.image_thumbnail_description')}
|
||||||
isOpen={true}
|
isOpen={openByDefault}
|
||||||
>
|
>
|
||||||
<SettingSelect
|
<SettingSelect
|
||||||
label={$t('admin.image_format')}
|
label={$t('admin.image_format')}
|
||||||
|
@ -75,7 +76,7 @@
|
||||||
key="preview-settings"
|
key="preview-settings"
|
||||||
title={$t('admin.image_preview_title')}
|
title={$t('admin.image_preview_title')}
|
||||||
subtitle={$t('admin.image_preview_description')}
|
subtitle={$t('admin.image_preview_description')}
|
||||||
isOpen={true}
|
isOpen={openByDefault}
|
||||||
>
|
>
|
||||||
<SettingSelect
|
<SettingSelect
|
||||||
label={$t('admin.image_format')}
|
label={$t('admin.image_format')}
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
export let disabled = false;
|
export let disabled = false;
|
||||||
export let onReset: SettingsResetEvent;
|
export let onReset: SettingsResetEvent;
|
||||||
export let onSave: SettingsSaveEvent;
|
export let onSave: SettingsSaveEvent;
|
||||||
|
export let openByDefault = false;
|
||||||
|
|
||||||
$: cronExpressionOptions = [
|
$: cronExpressionOptions = [
|
||||||
{ title: $t('interval.night_at_midnight'), expression: '0 0 * * *' },
|
{ title: $t('interval.night_at_midnight'), expression: '0 0 * * *' },
|
||||||
|
@ -35,7 +36,7 @@
|
||||||
key="library-watching"
|
key="library-watching"
|
||||||
title={$t('admin.library_watching_settings')}
|
title={$t('admin.library_watching_settings')}
|
||||||
subtitle={$t('admin.library_watching_settings_description')}
|
subtitle={$t('admin.library_watching_settings_description')}
|
||||||
isOpen
|
isOpen={openByDefault}
|
||||||
>
|
>
|
||||||
<div class="ml-4 mt-4 flex flex-col gap-4">
|
<div class="ml-4 mt-4 flex flex-col gap-4">
|
||||||
<SettingSwitch
|
<SettingSwitch
|
||||||
|
@ -50,7 +51,7 @@
|
||||||
key="library-scanning"
|
key="library-scanning"
|
||||||
title={$t('admin.library_scanning')}
|
title={$t('admin.library_scanning')}
|
||||||
subtitle={$t('admin.library_scanning_description')}
|
subtitle={$t('admin.library_scanning_description')}
|
||||||
isOpen
|
isOpen={openByDefault}
|
||||||
>
|
>
|
||||||
<div class="ml-4 mt-4 flex flex-col gap-4">
|
<div class="ml-4 mt-4 flex flex-col gap-4">
|
||||||
<SettingSwitch
|
<SettingSwitch
|
||||||
|
|
Loading…
Reference in a new issue