Skip to content

High performance self-hosted photo and video management solution.

fix(web): preserve album scroll when adding to other albums (#27078)

Michel Heusschen9a0c17fdb84f
diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 2e911d8330..3b366b8ad8 100644
--- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -287,7 +287,11 @@
}
};
- const onAlbumAddAssets = async () => {
+ const onAlbumAddAssets = async ({ albumIds }: { albumIds: string[] }) => {
+ if (!albumIds.includes(album.id)) {
+ return;
+ }
+
await refreshAlbum();
timelineInteraction.clearMultiselect();
await setModeToView();