You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-07-01 05:35:03 +02:00
fix(web): end selection after click when choosing thumbnail, and notify (#15373)
fix(web): Change viewMode state after updateThumbnail Fixes #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.
This commit is contained in:
@ -357,10 +357,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
await updateThumbnail(assetId);
|
||||
|
||||
viewMode = AlbumPageViewMode.VIEW;
|
||||
assetInteraction.clearMultiselect();
|
||||
|
||||
await updateThumbnail(assetId);
|
||||
};
|
||||
|
||||
const updateThumbnailUsingCurrentSelection = async () => {
|
||||
@ -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'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user