mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
- add toggle to show/hide asset owner names
This commit is contained in:
@@ -273,7 +273,7 @@
|
||||
|
||||
{#if !!assetOwner}
|
||||
<div class="absolute bottom-0 end-1">
|
||||
<span class="text-white font-light">{assetOwner.name}</span>
|
||||
<span class="text-white font-light text-sm">{assetOwner.name}</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
timelineManager: TimelineManager;
|
||||
assetInteraction: AssetInteraction;
|
||||
albumUsers?: UserResponseDto[];
|
||||
|
||||
onSelect: ({ title, assets }: { title: string; assets: TimelineAsset[] }) => void;
|
||||
onSelectAssets: (asset: TimelineAsset) => void;
|
||||
onSelectAssetCandidates: (asset: TimelineAsset | null) => void;
|
||||
|
||||
@@ -31,11 +31,11 @@
|
||||
import { navigate } from '$lib/utils/navigation';
|
||||
import { getTimes, toTimelineAsset, type ScrubberListener, type TimelineYearMonth } from '$lib/utils/timeline-util';
|
||||
import {
|
||||
AlbumUserRole,
|
||||
AssetVisibility,
|
||||
getAssetInfo,
|
||||
type AlbumResponseDto,
|
||||
type PersonResponseDto,
|
||||
type UserResponseDto,
|
||||
} from '@immich/sdk';
|
||||
import { modalManager } from '@immich/ui';
|
||||
import { DateTime } from 'luxon';
|
||||
@@ -65,6 +65,7 @@
|
||||
showArchiveIcon?: boolean;
|
||||
isShared?: boolean;
|
||||
album?: AlbumResponseDto | null;
|
||||
albumUsers?: UserResponseDto[];
|
||||
person?: PersonResponseDto | null;
|
||||
isShowDeleteConfirmation?: boolean;
|
||||
onSelect?: (asset: TimelineAsset) => void;
|
||||
@@ -84,6 +85,7 @@
|
||||
showArchiveIcon = false,
|
||||
isShared = false,
|
||||
album = null,
|
||||
albumUsers = [],
|
||||
person = null,
|
||||
isShowDeleteConfirmation = $bindable(false),
|
||||
onSelect = () => {},
|
||||
@@ -94,11 +96,11 @@
|
||||
|
||||
let { isViewing: showAssetViewer, asset: viewingAsset, preloadAssets, gridScrollTarget, mutex } = assetViewingStore;
|
||||
|
||||
const albumUsers = $derived(
|
||||
album?.shared && album.albumUsers.some(({ role }) => role === AlbumUserRole.Editor)
|
||||
? [album.owner, ...album.albumUsers.map(({ user }) => user)]
|
||||
: [],
|
||||
);
|
||||
// const albumUsers = $derived(
|
||||
// album?.shared && album.albumUsers.some(({ role }) => role === AlbumUserRole.Editor)
|
||||
// ? [album.owner, ...album.albumUsers.map(({ user }) => user)]
|
||||
// : [],
|
||||
// );
|
||||
|
||||
let element: HTMLElement | undefined = $state();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user