diff --git a/web/src/lib/components/admin-page/settings/ffmpeg/ffmpeg-settings.svelte b/web/src/lib/components/admin-page/settings/ffmpeg/ffmpeg-settings.svelte index 0ffbfa5620..636b0f425d 100644 --- a/web/src/lib/components/admin-page/settings/ffmpeg/ffmpeg-settings.svelte +++ b/web/src/lib/components/admin-page/settings/ffmpeg/ffmpeg-settings.svelte @@ -355,7 +355,7 @@ dispatch('reset', { ...detail, configKeys: ['ffmpeg'] })} on:save={() => dispatch('save', { ffmpeg: config.ffmpeg })} - showResetToDefault={!isEqual(savedConfig.ffmpeg, defaultConfig)} + showResetToDefault={!isEqual(savedConfig.ffmpeg, defaultConfig.ffmpeg)} {disabled} /> diff --git a/web/src/lib/components/admin-page/settings/image/image-settings.svelte b/web/src/lib/components/admin-page/settings/image/image-settings.svelte index 4240e6f9d4..ed1ee92786 100644 --- a/web/src/lib/components/admin-page/settings/image/image-settings.svelte +++ b/web/src/lib/components/admin-page/settings/image/image-settings.svelte @@ -81,7 +81,7 @@ dispatch('reset', { ...detail, configKeys: ['image'] })} on:save={() => dispatch('save', { image: config.image })} - showResetToDefault={!isEqual(savedConfig, defaultConfig)} + showResetToDefault={!isEqual(savedConfig.image, defaultConfig.image)} {disabled} /> diff --git a/web/src/lib/components/admin-page/settings/new-version-check-settings/new-version-check-settings.svelte b/web/src/lib/components/admin-page/settings/new-version-check-settings/new-version-check-settings.svelte index 644a856d90..5ab7735f9c 100644 --- a/web/src/lib/components/admin-page/settings/new-version-check-settings/new-version-check-settings.svelte +++ b/web/src/lib/components/admin-page/settings/new-version-check-settings/new-version-check-settings.svelte @@ -29,7 +29,7 @@ dispatch('reset', { ...detail, configKeys: ['newVersionCheck'] })} on:save={() => dispatch('save', { newVersionCheck: config.newVersionCheck })} - showResetToDefault={!isEqual(savedConfig, defaultConfig)} + showResetToDefault={!isEqual(savedConfig.newVersionCheck, defaultConfig.newVersionCheck)} {disabled} /> diff --git a/web/src/lib/components/admin-page/settings/server/server-settings.svelte b/web/src/lib/components/admin-page/settings/server/server-settings.svelte index 4f235af1f6..2b24ef5736 100644 --- a/web/src/lib/components/admin-page/settings/server/server-settings.svelte +++ b/web/src/lib/components/admin-page/settings/server/server-settings.svelte @@ -41,7 +41,7 @@ dispatch('reset', { ...detail, configKeys: ['server'] })} on:save={() => dispatch('save', { server: config.server })} - showResetToDefault={!isEqual(savedConfig, defaultConfig)} + showResetToDefault={!isEqual(savedConfig.server, defaultConfig.server)} {disabled} /> diff --git a/web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte b/web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte index 27d8223664..4a4e3c60b4 100644 --- a/web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte +++ b/web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte @@ -236,7 +236,7 @@ dispatch('reset', { ...detail, configKeys: ['storageTemplate'] })} on:save={() => dispatch('save', { storageTemplate: config.storageTemplate })} - showResetToDefault={!isEqual(savedConfig, defaultConfig) && !minified} + showResetToDefault={!isEqual(savedConfig.storageTemplate, defaultConfig.storageTemplate) && !minified} {disabled} /> {/if} diff --git a/web/src/lib/components/admin-page/settings/trash-settings/trash-settings.svelte b/web/src/lib/components/admin-page/settings/trash-settings/trash-settings.svelte index e6ae804425..8f2bf235e3 100644 --- a/web/src/lib/components/admin-page/settings/trash-settings/trash-settings.svelte +++ b/web/src/lib/components/admin-page/settings/trash-settings/trash-settings.svelte @@ -45,7 +45,7 @@ dispatch('reset', { ...detail, configKeys: ['trash'] })} on:save={() => dispatch('save', { trash: config.trash })} - showResetToDefault={!isEqual(savedConfig, defaultConfig)} + showResetToDefault={!isEqual(savedConfig.trash, defaultConfig.trash)} {disabled} /> diff --git a/web/src/lib/components/admin-page/settings/user-settings/user-settings.svelte b/web/src/lib/components/admin-page/settings/user-settings/user-settings.svelte index 81a93a4091..9b0b7f1950 100644 --- a/web/src/lib/components/admin-page/settings/user-settings/user-settings.svelte +++ b/web/src/lib/components/admin-page/settings/user-settings/user-settings.svelte @@ -36,7 +36,7 @@ dispatch('reset', { ...detail, configKeys: ['user'] })} on:save={() => dispatch('save', { user: config.user })} - showResetToDefault={!isEqual(savedConfig, defaultConfig)} + showResetToDefault={!isEqual(savedConfig.user, defaultConfig.user)} {disabled} />