Skip to content

Commit 8c0de8e

Browse files
IMBeniaminyosit
authored andcommitted
feat(web): Added tag button to the context menu in the favorites page (immich-app#14156)
Added tag action to the context menu in the favorites page when selection is active
1 parent e6bf7b5 commit 8c0de8e

File tree

1 file changed

+5
-0
lines changed
  • web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]

1 file changed

+5
-0
lines changed

Diff for: web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import { mdiDotsVertical, mdiPlus } from '@mdi/js';
2121
import { t } from 'svelte-i18n';
2222
import { onDestroy } from 'svelte';
23+
import { preferences } from '$lib/stores/user.store';
24+
import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
2325
2426
interface Props {
2527
data: PageData;
@@ -53,6 +55,9 @@
5355
<ChangeDate menuItem />
5456
<ChangeLocation menuItem />
5557
<ArchiveAction menuItem unarchive={isAllArchive} onArchive={(assetIds) => assetStore.removeAssets(assetIds)} />
58+
{#if $preferences.tags.enabled}
59+
<TagAction menuItem />
60+
{/if}
5661
<DeleteAssets menuItem onAssetDelete={(assetIds) => assetStore.removeAssets(assetIds)} />
5762
</ButtonContextMenu>
5863
</AssetSelectControlBar>

0 commit comments

Comments
 (0)