feat: enhance Immich integration with local copy option and validation for image handling

This commit is contained in:
Sean Morley
2025-06-01 19:55:12 -04:00
parent f95afdc35c
commit 06787bccf6
12 changed files with 214 additions and 37 deletions

View File

@@ -28,7 +28,8 @@
let newImmichIntegration: ImmichIntegration = {
server_url: '',
api_key: '',
id: ''
id: '',
copy_locally: true
};
let isMFAModalOpen: boolean = false;
@@ -833,6 +834,26 @@
/>
</div>
<!-- Toggle for copy_locally -->
<div class="form-control">
<label class="label cursor-pointer justify-start gap-4">
<input
type="checkbox"
bind:checked={newImmichIntegration.copy_locally}
class="toggle toggle-primary"
/>
<div>
<span class="label-text font-medium">
{$t('immich.copy_locally') || 'Copy Locally'}
</span>
<p class="text-sm text-base-content/70">
{$t('immich.copy_locally_desc') ||
'If enabled, files will be copied locally.'}
</p>
</div>
</label>
</div>
<button on:click={enableImmichIntegration} class="btn btn-primary w-full">
{!immichIntegration?.id
? `🔗 ${$t('immich.enable_integration')}`