mirror of
https://github.com/immich-app/immich.git
synced 2025-11-21 03:10:44 +09: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user