1
0
mirror of https://github.com/immich-app/immich.git synced 2025-02-14 19:35:28 +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:
imakida 2025-01-15 11:13:16 -10:00 committed by GitHub
parent a2207f2eef
commit e151248b16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'));
}