diff --git a/server/src/domain/system-config/dto/system-config-metadata.dto.ts b/server/src/domain/system-config/dto/system-config-metadata.dto.ts new file mode 100644 index 00000000000000..cf6d82e7254390 --- /dev/null +++ b/server/src/domain/system-config/dto/system-config-metadata.dto.ts @@ -0,0 +1,6 @@ +import { IsBoolean } from 'class-validator'; + +export class SystemConfigMetadataDto { + @IsBoolean() + importFaces!: boolean; +} diff --git a/web/src/lib/components/admin-page/settings/confirm-enable-import-faces.svelte b/web/src/lib/components/admin-page/settings/confirm-enable-import-faces.svelte new file mode 100644 index 00000000000000..6dbf25ab790aa7 --- /dev/null +++ b/web/src/lib/components/admin-page/settings/confirm-enable-import-faces.svelte @@ -0,0 +1,16 @@ + + + + +
+

+ Importing faces from metadata is currently incompatible with machine learning face recognition. +

+

+ Are you sure you want to enable importing faces from metadata? +

+
+
+
diff --git a/web/src/lib/components/admin-page/settings/metadata-settings/metadata-settings.svelte b/web/src/lib/components/admin-page/settings/metadata-settings/metadata-settings.svelte new file mode 100644 index 00000000000000..496247f5ecb01c --- /dev/null +++ b/web/src/lib/components/admin-page/settings/metadata-settings/metadata-settings.svelte @@ -0,0 +1,132 @@ + + +{#if isConfirmOpen} + handleConfirm(false)} on:confirm={() => handleConfirm(true)} /> +{/if} + +
+ {#await getConfigs() then} +
+ +
+
+
+ + + handleReset(detail)} + on:save={saveSetting} + showResetToDefault={!isEqual(savedConfig, defaultConfig)} + {disabled} + /> +
+
+
+
+
+ {/await} +