1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-26 10:50:29 +02:00

Add indicator if image is archived.

* Added visual indicator next to the favorite icon if the image is archived.
This commit is contained in:
Toni 2024-10-31 10:38:39 +01:00
parent 032e34c8ac
commit 929ae12608
No known key found for this signature in database
GPG Key ID: 159A266B4318F208
3 changed files with 19 additions and 10 deletions

View File

@ -1209,6 +1209,12 @@
"support_third_party_description": "Your Immich installation was packaged by a third-party. Issues you experience may be caused by that package, so please raise issues with them in the first instance using the links below.",
"swap_merge_direction": "Swap merge direction",
"sync": "Sync",
"synchronize_albums" : "Synchronize Albums",
"synchronize_albums_description" : "All deduplicates get put in all albums of all duplicates.",
"synchronize_archives" : "Synchronize Archives",
"synchronize_archives_description" : "If one of the duplicates is a favorite, mark all deduplicated as favorites.",
"synchronize_favorites" : "Synchronize Favorites",
"synchronize_favorites_description" : "If one of the duplicates is already archived, also archive the deduplicated result.",
"tag": "Tag",
"tag_assets": "Tag assets",
"tag_created": "Created tag: {tag}",

View File

@ -4,7 +4,7 @@
import { getAssetResolution, getFileSize } from '$lib/utils/asset-utils';
import { getAltText } from '$lib/utils/thumbnail-util';
import { getAllAlbums, type AssetResponseDto } from '@immich/sdk';
import { mdiHeart, mdiMagnifyPlus, mdiImageMultipleOutline } from '@mdi/js';
import { mdiHeart, mdiMagnifyPlus, mdiImageMultipleOutline, mdiArchiveArrowDownOutline } from '@mdi/js';
import { t } from 'svelte-i18n';
interface Props {
@ -43,11 +43,14 @@
/>
<!-- FAVORITE ICON -->
<div class="absolute bottom-2 left-2">
{#if asset.isFavorite}
<div class="absolute bottom-2 left-2">
<Icon path={mdiHeart} size="24" class="text-white" />
<Icon path={mdiHeart} size="24" class="text-white inline-block" />
{/if}
{#if asset.isArchived}
<Icon path={mdiArchiveArrowDownOutline} size="24" class="text-white inline-block" />
{/if}
</div>
{/if}
<!-- OVERLAY CHIP -->
<div

View File

@ -16,20 +16,20 @@
<div class="items-center justify-center">
<div class="grid p-2 gap-y-2">
<SettingSwitch
title={'Synchronize Albums'}
subtitle={'All deduplicates get put in all albums of all duplicates.'}
title={$t('synchronize_albums')}
subtitle={$t('synchronize_albums_description')}
checked={synchronizeAlbums}
onToggle={onToggleSyncAlbum}
/>
<SettingSwitch
title={'Synchronize Favorites'}
subtitle={'If one of the duplicates is a favorite, mark all deduplicated as favorites.'}
title={$t('synchronize_favorites')}
subtitle={$t('synchronize_favorites_description')}
checked={synchronizeFavorites}
onToggle={onToggleSyncFavorites}
/>
<SettingSwitch
title={'Synchronize Archives'}
subtitle={'If one of the duplicates is already archived, also archive the deduplicated result.'}
title={$t('synchronize_archives')}
subtitle={$t('synchronize_archives_description')}
checked={synchronizeArchives}
onToggle={onToggleSyncArchives}
/>