mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
Make error message toasts more visually distinct
This commit is contained in:
parent
f7f841ce6d
commit
9cdf2f046f
2 changed files with 19 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue