mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(web): always show asset owner when viewing an asset from a shared album (#7104)
fix: always show album owner when viewing a shared album
This commit is contained in:
parent
d8631a00bb
commit
6f5648569a
@ -736,7 +736,7 @@
|
||||
>
|
||||
<DetailPanel
|
||||
{asset}
|
||||
albumId={album?.id}
|
||||
currentAlbum={album}
|
||||
albums={appearsInAlbums}
|
||||
on:close={() => ($isShowDetail = false)}
|
||||
on:closeViewer={handleCloseViewer}
|
||||
|
@ -38,7 +38,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;
|
||||
@ -268,8 +268,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')}
|
||||
>
|
||||
@ -630,8 +630,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>
|
||||
|
Loading…
Reference in New Issue
Block a user