You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 05:46:58 +02:00
fix(web): shared link isOwner check (#9729)
* fix(web): shared link isOwner check * add e2e tests + update playwright * fix formatting
This commit is contained in:
@ -51,7 +51,7 @@
|
||||
export let showSlideshow = false;
|
||||
export let hasStackChildren = false;
|
||||
|
||||
$: isOwner = asset.ownerId === $user?.id;
|
||||
$: isOwner = $user && asset.ownerId === $user?.id;
|
||||
|
||||
type MenuItemEvent =
|
||||
| 'addToAlbum'
|
||||
@ -109,7 +109,10 @@
|
||||
<div class="text-white">
|
||||
<CircleIconButton color="opaque" icon={mdiArrowLeft} title="Go back" on:click={() => dispatch('back')} />
|
||||
</div>
|
||||
<div class="flex w-[calc(100%-3rem)] justify-end gap-2 overflow-hidden text-white">
|
||||
<div
|
||||
class="flex w-[calc(100%-3rem)] justify-end gap-2 overflow-hidden text-white"
|
||||
data-testid="asset-viewer-navbar-actions"
|
||||
>
|
||||
{#if showShareButton}
|
||||
<CircleIconButton
|
||||
color="opaque"
|
||||
|
Reference in New Issue
Block a user