From b1e780561d7157161f9578fa3429bf6ba2d89b71 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Fri, 30 Aug 2024 16:31:53 +0200 Subject: [PATCH] fix(web): reset asset grid after changing album order (#12139) --- .../[[photos=photos]]/[[assetId=id]]/+page.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 1dfc494f5e..6762e3a1cc 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 @@ -731,7 +731,10 @@ {album} order={albumOrder} user={$user} - onChangeOrder={(order) => (albumOrder = order)} + onChangeOrder={async (order) => { + albumOrder = order; + await setModeToView(); + }} on:close={() => (viewMode = ViewMode.VIEW)} on:toggleEnableActivity={handleToggleEnableActivity} on:showSelectSharedUser={() => (viewMode = ViewMode.SELECT_USERS)}