mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(web): keep album timeline when selecting cover (#23819)
This commit is contained in:
+1
-4
@@ -298,9 +298,6 @@
|
|||||||
|
|
||||||
let timelineManager = $state<TimelineManager>() as TimelineManager;
|
let timelineManager = $state<TimelineManager>() as TimelineManager;
|
||||||
const options = $derived.by(() => {
|
const options = $derived.by(() => {
|
||||||
if (viewMode === AlbumPageViewMode.VIEW) {
|
|
||||||
return { albumId, order: albumOrder };
|
|
||||||
}
|
|
||||||
if (viewMode === AlbumPageViewMode.SELECT_ASSETS) {
|
if (viewMode === AlbumPageViewMode.SELECT_ASSETS) {
|
||||||
return {
|
return {
|
||||||
visibility: AssetVisibility.Timeline,
|
visibility: AssetVisibility.Timeline,
|
||||||
@@ -308,7 +305,7 @@
|
|||||||
timelineAlbumId: albumId,
|
timelineAlbumId: albumId,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {};
|
return { albumId, order: albumOrder };
|
||||||
});
|
});
|
||||||
|
|
||||||
const isShared = $derived(viewMode === AlbumPageViewMode.SELECT_ASSETS ? false : album.albumUsers.length > 0);
|
const isShared = $derived(viewMode === AlbumPageViewMode.SELECT_ASSETS ? false : album.albumUsers.length > 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user