mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(web): show download size (#3270)
* feat(web): show download size * chore: never over 100% * chore: use percentage * fix: unselect assets before download finishes
This commit is contained in:
parent
81e07fda08
commit
382341f550
7 changed files with 99 additions and 42 deletions
|
|
@ -1,7 +1,12 @@
|
|||
import type { ApiError } from '@api';
|
||||
import { CanceledError } from 'axios';
|
||||
import { notificationController, NotificationType } from '../components/shared-components/notification/notification';
|
||||
|
||||
export async function handleError(error: unknown, message: string) {
|
||||
if (error instanceof CanceledError) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.error(`[handleError]: ${message}`, error);
|
||||
|
||||
let data = (error as ApiError)?.response?.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue