mirror of
https://github.com/immich-app/immich.git
synced 2025-11-13 22:32:58 +09:00
fix(web): cannot open detail panel in public shared link (#5946)
* fix(web): cannot open detail panel in public shared link * fix websocket auth message * refactor
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$: isOwner = $user.id === asset.ownerId;
|
||||
$: isOwner = $user?.id === asset.ownerId;
|
||||
|
||||
$: {
|
||||
// Get latest description from server
|
||||
@@ -356,7 +356,7 @@
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
{:else if !asset.exifInfo?.dateTimeOriginal && !asset.isReadOnly && $user && asset.ownerId === $user.id}
|
||||
{:else if !asset.exifInfo?.dateTimeOriginal && !asset.isReadOnly && isOwner}
|
||||
<div class="flex justify-between place-items-start gap-4 py-4">
|
||||
<div class="flex gap-4">
|
||||
<div>
|
||||
@@ -519,7 +519,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{:else if !asset.exifInfo?.city && !asset.isReadOnly && $user && asset.ownerId === $user.id}
|
||||
{:else if !asset.exifInfo?.city && !asset.isReadOnly && isOwner}
|
||||
<div
|
||||
class="flex justify-between place-items-start gap-4 py-4 rounded-lg hover:dark:text-immich-dark-primary hover:text-immich-primary"
|
||||
on:click={() => (isShowChangeLocation = true)}
|
||||
|
||||
Reference in New Issue
Block a user