Make error message toasts more visually distinct

This commit is contained in:
shamoon
2023-02-16 19:41:38 -08:00
parent 21c0413240
commit 63782d95ff
2 changed files with 19 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ export interface Toast {
action?: any
actionName?: string
classname?: string
}
@Injectable({
@@ -29,7 +31,12 @@ export class ToastService {
}
showError(content: string, delay: number = 10000) {
this.show({ title: $localize`Error`, content: content, delay: delay })
this.show({
title: $localize`Error`,
content: content,
delay: delay,
classname: 'error',
})
}
showInfo(content: string, delay: number = 5000) {