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:
parent
a2207f2eef
commit
e151248b16
@ -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'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user