Skip to content

Commit

Permalink
fix: hide album context menu (#2543)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasm91 committed May 23, 2023
1 parent 50a792a commit c2145cb
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions web/src/lib/components/album-page/album-viewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -405,23 +405,21 @@
/>
{/if}

{#if !isPublicShared}
{#if !isPublicShared && isOwned}
<div use:clickOutside on:outclick={() => (isShowAlbumOptions = false)}>
<CircleIconButton
title="Album options"
on:click={showAlbumOptionsMenu}
logo={DotsVertical}
>{#if isShowAlbumOptions}
<ContextMenu {...contextMenuPosition}>
{#if isOwned}
<MenuOption
on:click={() => {
isShowThumbnailSelection = true;
isShowAlbumOptions = false;
}}
text="Set album cover"
/>
{/if}
<MenuOption
on:click={() => {
isShowThumbnailSelection = true;
isShowAlbumOptions = false;
}}
text="Set album cover"
/>
</ContextMenu>
{/if}
</CircleIconButton>
Expand Down

0 comments on commit c2145cb

Please sign in to comment.