mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(web): new shortcuts (#3111)
* feat: shortcuts Signed-off-by: martabal <74269598+martabal@users.noreply.github.com> * fix: remove listener on component destroy Signed-off-by: martabal <74269598+martabal@users.noreply.github.com> * revert delete shortcut Signed-off-by: martabal <74269598+martabal@users.noreply.github.com> * feat: new notifications Signed-off-by: martabal <74269598+martabal@users.noreply.github.com> * fix: use handleError Signed-off-by: martabal <74269598+martabal@users.noreply.github.com> --------- Signed-off-by: martabal <74269598+martabal@users.noreply.github.com>
This commit is contained in:
parent
e287b18435
commit
f9032866e7
3 changed files with 66 additions and 25 deletions
|
|
@ -122,6 +122,11 @@ export const downloadFile = async (asset: AssetResponseDto, key?: string) => {
|
|||
},
|
||||
);
|
||||
|
||||
notificationController.show({
|
||||
type: NotificationType.Info,
|
||||
message: `Downloading asset ${asset.originalFileName}`,
|
||||
});
|
||||
|
||||
downloadBlob(data, filename);
|
||||
} catch (e) {
|
||||
handleError(e, `Error downloading ${filename}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue