mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Remove/Add asset in ablum on web (#371)
* Added interaction to select multiple thumbnail * Fixed stutter transition * Return AlbumResponseDto after removing an asset from album * Render correctly when an array of thumbnail is updated * Fixed wording * Added native dialog for removing users from album * Fixed rendering incorrect profile image on share user select dialog
This commit is contained in:
parent
a35460cb84
commit
052db5d748
14 changed files with 210 additions and 104 deletions
|
|
@ -42,11 +42,13 @@
|
|||
};
|
||||
|
||||
const removeUser = async (userId: string) => {
|
||||
try {
|
||||
await api.albumApi.removeUserFromAlbum(album.id, userId);
|
||||
dispatch('user-deleted', { userId });
|
||||
} catch (e) {
|
||||
console.error('Error [share-info-modal] [removeUser]', e);
|
||||
if (window.confirm('Do you want to remove selected user from the album?')) {
|
||||
try {
|
||||
await api.albumApi.removeUserFromAlbum(album.id, userId);
|
||||
dispatch('user-deleted', { userId });
|
||||
} catch (e) {
|
||||
console.error('Error [share-info-modal] [removeUser]', e);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue