fix(web): show warning on duplicate uploads #2557 (#3613)

* fix(web): show warning on duplicate uploads #2557

* Prettier fix

* color

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Russell Tan
2023-08-09 18:11:26 -07:00
committed by GitHub
parent 57a7103d75
commit 66b2ad7939
5 changed files with 33 additions and 1 deletions

View File

@@ -3,10 +3,11 @@ import { writable } from 'svelte/store';
export enum NotificationType {
Info = 'Info',
Error = 'Error',
Warning = 'Warning',
}
export class ImmichNotification {
id = new Date().getTime();
id = new Date().getTime() + Math.random();
type!: NotificationType;
message!: string;
action!: NotificationAction;