Skip to content

High performance self-hosted photo and video management solution.

feat: show asset owners for editors in shared albums (#24890)

Ahmed Mahmoud Aref8e8a2f997e9a
diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 3f4d3dd39f..a2a9169864 100644
--- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -652,7 +652,7 @@
/>
{/if}
- {#if isOwned}
+ {#if isOwned || containsEditors}
<ButtonContextMenu
icon={mdiDotsVertical}
title={$t('album_options')}
@@ -666,7 +666,7 @@
onClick={() => timelineManager.toggleShowAssetOwners()}
/>
{/if}
- {#if album.assetCount > 0}
+ {#if isOwned && album.assetCount > 0}
<MenuOption
icon={mdiImageOutline}
text={$t('select_album_cover')}
@@ -675,11 +675,13 @@
<MenuOption icon={mdiCogOutline} text={$t('options')} onClick={handleOptions} />
{/if}
- <MenuOption
- icon={mdiDeleteOutline}
- text={$t('delete_album')}
- onClick={() => handleDeleteAlbum(album)}
- />
+ {#if isOwned}
+ <MenuOption
+ icon={mdiDeleteOutline}
+ text={$t('delete_album')}
+ onClick={() => handleDeleteAlbum(album)}
+ />
+ {/if}
</ButtonContextMenu>
{/if}