feat: enhance Immich integration with local copy option and validation for image handling
This commit is contained in:
@@ -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')}`
|
||||
|
||||
Reference in New Issue
Block a user