diff --git a/web/src/lib/components/admin-page/settings/library-settings/library-settings.svelte b/web/src/lib/components/admin-page/settings/library-settings/library-settings.svelte index 6cf5505d5b..b494dca53f 100644 --- a/web/src/lib/components/admin-page/settings/library-settings/library-settings.svelte +++ b/web/src/lib/components/admin-page/settings/library-settings/library-settings.svelte @@ -11,6 +11,7 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/setting-buttons-row.svelte'; import { t } from 'svelte-i18n'; import FormatMessage from '$lib/components/i18n/format-message.svelte'; + import SettingSelect from '$lib/components/shared-components/settings/setting-select.svelte'; export let savedConfig: SystemConfigDto; export let defaultConfig: SystemConfigDto; @@ -21,10 +22,10 @@ export let openByDefault = false; $: cronExpressionOptions = [ - { title: $t('interval.night_at_midnight'), expression: '0 0 * * *' }, - { title: $t('interval.night_at_twoam'), expression: '0 2 * * *' }, - { title: $t('interval.day_at_onepm'), expression: '0 13 * * *' }, - { title: $t('interval.hours', { values: { hours: 6 } }), expression: '0 */6 * * *' }, + { text: $t('interval.night_at_midnight'), value: '0 0 * * *' }, + { text: $t('interval.night_at_twoam'), value: '0 2 * * *' }, + { text: $t('interval.day_at_onepm'), value: '0 13 * * *' }, + { text: $t('interval.hours', { values: { hours: 6 } }), value: '0 */6 * * *' }, ]; @@ -60,25 +61,13 @@ bind:checked={config.library.scan.enabled} /> -