-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): Synchronize albums from deduplicated images
* Added visual indication next to the favorite icon to the images if they are archived. * Added new settings menu to the the deduplication tab. * The toggable options in the settings are synchronization of: albums, favorites, archives. * When synchronizing the albums, all albums will be added to all albums of the duplicates. This way the final deduplicated image is in all albums and also the removed images are in these albums if they may be restored. * When synchronizing the favorite/archive status, all images will be marked as favorite/archived, if only a single image is in the favorite/archived. * The selected image to keep will be marked with a red favorite/archive symbol if that status will be applied after the deduplication.
- Loading branch information
Showing
5 changed files
with
189 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
web/src/lib/components/utilities-page/duplicates/duplicate-options.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script lang="ts"> | ||
import FullScreenModal from '$lib/components/shared-components/full-screen-modal.svelte'; | ||
import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; | ||
import { t } from 'svelte-i18n'; | ||
interface Props { | ||
synchronizeAlbums: boolean; | ||
synchronizeArchives: boolean; | ||
synchronizeFavorites: boolean; | ||
onClose: () => void; | ||
onToggleSyncAlbum: () => void; | ||
onToggleSyncArchives: () => void; | ||
onToggleSyncFavorites: () => void; | ||
} | ||
let { | ||
synchronizeAlbums, | ||
synchronizeArchives, | ||
synchronizeFavorites, | ||
onClose, | ||
onToggleSyncAlbum, | ||
onToggleSyncArchives, | ||
onToggleSyncFavorites, | ||
}: Props = $props(); | ||
</script> | ||
|
||
<FullScreenModal title={$t('options')} width="auto" {onClose}> | ||
<div class="items-center justify-center"> | ||
<div class="grid p-2 gap-y-2"> | ||
<SettingSwitch | ||
title={$t('synchronize_albums')} | ||
subtitle={$t('synchronize_albums_description')} | ||
checked={synchronizeAlbums} | ||
onToggle={onToggleSyncAlbum} | ||
/> | ||
<SettingSwitch | ||
title={$t('synchronize_favorites')} | ||
subtitle={$t('synchronize_favorites_description')} | ||
checked={synchronizeFavorites} | ||
onToggle={onToggleSyncFavorites} | ||
/> | ||
<SettingSwitch | ||
title={$t('synchronize_archives')} | ||
subtitle={$t('synchronize_archives_description')} | ||
checked={synchronizeArchives} | ||
onToggle={onToggleSyncArchives} | ||
/> | ||
</div> | ||
</div> | ||
</FullScreenModal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters