mirror of
https://github.com/immich-app/immich.git
synced 2026-01-18 18:06:15 -05:00
refactor: duplicate logic check
This commit is contained in:
parent
16fc089cda
commit
31b8a73e2e
@ -67,15 +67,18 @@
|
||||
})}
|
||||
{/if}
|
||||
</Text>
|
||||
{#if !files && (folder === 'profile' || folder === 'upload')}
|
||||
<Text variant="italic">{$t('maintenance_restore_library_hint_missing_files')}</Text>
|
||||
{/if}
|
||||
{#if !files && (folder === 'encoded-video' || folder === 'thumbs')}
|
||||
<Text variant="italic">{$t('maintenance_restore_library_hint_regenerate_later')}</Text>
|
||||
{/if}
|
||||
{#if !files && folder === 'library'}
|
||||
<Text variant="italic">{$t('maintenance_restore_library_hint_storage_template_missing_files')}</Text
|
||||
>
|
||||
{#if !files}
|
||||
{#if folder === 'profile' || folder === 'upload'}
|
||||
<Text variant="italic">{$t('maintenance_restore_library_hint_missing_files')}</Text>
|
||||
{/if}
|
||||
{#if folder === 'encoded-video' || folder === 'thumbs'}
|
||||
<Text variant="italic">{$t('maintenance_restore_library_hint_regenerate_later')}</Text>
|
||||
{/if}
|
||||
{#if folder === 'library'}
|
||||
<Text variant="italic"
|
||||
>{$t('maintenance_restore_library_hint_storage_template_missing_files')}</Text
|
||||
>
|
||||
{/if}
|
||||
{/if}
|
||||
</Stack>
|
||||
</HStack>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user