Skip to content

Commit

Permalink
feat(web): Added tag button to the context menu in the favorites page (
Browse files Browse the repository at this point in the history
…#14156)

Added tag action to the context menu in the favorites page when selection is active
  • Loading branch information
IMBeniamin authored Nov 14, 2024
1 parent 33263cf commit df972ef
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import { mdiDotsVertical, mdiPlus } from '@mdi/js';
import { t } from 'svelte-i18n';
import { onDestroy } from 'svelte';
import { preferences } from '$lib/stores/user.store';
import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
interface Props {
data: PageData;
Expand Down Expand Up @@ -53,6 +55,9 @@
<ChangeDate menuItem />
<ChangeLocation menuItem />
<ArchiveAction menuItem unarchive={isAllArchive} onArchive={(assetIds) => assetStore.removeAssets(assetIds)} />
{#if $preferences.tags.enabled}
<TagAction menuItem />
{/if}
<DeleteAssets menuItem onAssetDelete={(assetIds) => assetStore.removeAssets(assetIds)} />
</ButtonContextMenu>
</AssetSelectControlBar>
Expand Down

0 comments on commit df972ef

Please sign in to comment.