mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: TimelineAsset visibility (#18395)
* fix: TimelineAsset visibility * fix enum values
This commit is contained in:
parent
895e0eacfe
commit
bdf19ce331
12 changed files with 27 additions and 120 deletions
|
|
@ -29,7 +29,7 @@
|
|||
import {
|
||||
AssetJobName,
|
||||
AssetTypeEnum,
|
||||
Visibility,
|
||||
AssetVisibility,
|
||||
type AlbumResponseDto,
|
||||
type AssetResponseDto,
|
||||
type PersonResponseDto,
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
const sharedLink = getSharedLink();
|
||||
let isOwner = $derived($user && asset.ownerId === $user?.id);
|
||||
let showDownloadButton = $derived(sharedLink ? sharedLink.allowDownload : !asset.isOffline);
|
||||
let isLocked = $derived(asset.visibility === Visibility.Locked);
|
||||
let isLocked = $derived(asset.visibility === AssetVisibility.Locked);
|
||||
|
||||
// $: showEditorButton =
|
||||
// isOwner &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue