1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-27 05:11:11 +02:00

fix(web): unstacking issues (#4792)

* Fix typo

* Restore asset store consistency after unstacking

* Fix aspect ratio after unstacking
This commit is contained in:
Sergey Kondrikov
2023-11-03 17:01:48 +03:00
committed by GitHub
parent 92bb42950e
commit 38443a6068
4 changed files with 9 additions and 7 deletions

View File

@ -549,7 +549,7 @@
}
asset.stackCount = 0;
asset.stack = [];
assetStore?.updateAsset(asset);
assetStore?.updateAsset(asset, true);
dispatch('unstack');
notificationController.show({ type: NotificationType.Info, message: 'Un-stacked', timeout: 1500 });
@ -575,7 +575,7 @@
showDownloadButton={shouldShowDownloadButton}
showDetailButton={shouldShowDetailButton}
showSlideshow={!!assetStore}
hasStackChildern={$stackAssetsStore.length > 0}
hasStackChildren={$stackAssetsStore.length > 0}
on:goBack={closeViewer}
on:showDetail={showDetailInfoHandler}
on:download={() => downloadFile(asset)}