Skip to content

Commit

Permalink
fix: always show album owner when viewing a shared album
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Feb 14, 2024
1 parent b2181ee commit 6153341
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion web/src/lib/components/asset-viewer/asset-viewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@
>
<DetailPanel
{asset}
albumId={album?.id}
currentAlbum={album}
albums={appearsInAlbums}
on:close={() => ($isShowDetail = false)}
on:closeViewer={handleCloseViewer}
Expand Down
10 changes: 5 additions & 5 deletions web/src/lib/components/asset-viewer/detail-panel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
export let asset: AssetResponseDto;
export let albums: AlbumResponseDto[] = [];
export let albumId: string | null = null;
export let currentAlbum: AlbumResponseDto | null = null;
let showAssetPath = false;
let textArea: HTMLTextAreaElement;
Expand Down Expand Up @@ -275,8 +275,8 @@
on:mouseleave={() => ($boundingBoxesArray = [])}
>
<a
href="{AppRoute.PEOPLE}/{person.id}?{QueryParameter.PREVIOUS_ROUTE}={albumId
? `${AppRoute.ALBUMS}/${albumId}`
href="{AppRoute.PEOPLE}/{person.id}?{QueryParameter.PREVIOUS_ROUTE}={currentAlbum?.id
? `${AppRoute.ALBUMS}/${currentAlbum?.id}`
: AppRoute.PHOTOS}"
on:click={() => dispatch('closeViewer')}
>
Expand Down Expand Up @@ -637,8 +637,8 @@
</div>
{/if}

{#if asset.owner && !isOwner}
<section class="px-6 pt-6 dark:text-immich-dark-fg">
{#if currentAlbum && currentAlbum.sharedUsers.length > 0 && asset.owner}
<section class="px-6 dark:text-immich-dark-fg">
<p class="text-sm">SHARED BY</p>
<div class="flex gap-4 pt-4">
<div>
Expand Down

0 comments on commit 6153341

Please sign in to comment.