Skip to content

Commit

Permalink
fix(web): end selection after click when choosing thumbnail, and noti…
Browse files Browse the repository at this point in the history
…fy (immich-app#15373)

fix(web): Change viewMode state after updateThumbnail

Fixes immich-app#14692

viewMode state was being changed before updateThumbnail which caused
AssetGrid.handleSelectAssets() to continue, instead of returning.

Also added notification to notify user that the album cover was
updated.
  • Loading branch information
imakida authored and vladd11 committed Jan 25, 2025
1 parent 53a1ec3 commit 9943b4c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,10 @@
return;
}
await updateThumbnail(assetId);
viewMode = AlbumPageViewMode.VIEW;
assetInteraction.clearMultiselect();
await updateThumbnail(assetId);
};
const updateThumbnailUsingCurrentSelection = async () => {
Expand All @@ -379,6 +379,10 @@
albumThumbnailAssetId: assetId,
},
});
notificationController.show({
type: NotificationType.Info,
message: $t('album_cover_updated'),
});
} catch (error) {
handleError(error, $t('errors.unable_to_update_album_cover'));
}
Expand Down

0 comments on commit 9943b4c

Please sign in to comment.