Skip to content

Commit

Permalink
feat(web): tag button in album/shared album (#12172)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Sep 2, 2024
1 parent b80cc0d commit bd6c5e1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import { assetViewingStore } from '$lib/stores/asset-viewing.store';
import { AssetStore } from '$lib/stores/assets.store';
import { SlideshowNavigation, SlideshowState, slideshowStore } from '$lib/stores/slideshow.store';
import { user } from '$lib/stores/user.store';
import { preferences, user } from '$lib/stores/user.store';
import { handlePromiseError } from '$lib/utils';
import { downloadAlbum } from '$lib/utils/asset-utils';
import { openFileUploadDialog } from '$lib/utils/file-uploader';
Expand Down Expand Up @@ -85,6 +85,7 @@
import { t } from 'svelte-i18n';
import { onDestroy } from 'svelte';
import { confirmAlbumDelete } from '$lib/utils/album-utils';
import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
export let data: PageData;
Expand Down Expand Up @@ -458,6 +459,11 @@
{/if}
<ArchiveAction menuItem unarchive={isAllArchived} onArchive={() => assetStore.triggerUpdate()} />
{/if}

{#if $preferences.tags.enabled && isAllUserOwned}
<TagAction menuItem />
{/if}

{#if isOwned || isAllUserOwned}
<RemoveFromAlbum menuItem bind:album onRemove={handleRemoveAssets} />
{/if}
Expand Down

0 comments on commit bd6c5e1

Please sign in to comment.