A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Make error message toasts more visually distinct
shamoon9cdf2f046fe8
diff --git a/src-ui/src/app/components/common/toasts/toasts.component.scss b/src-ui/src/app/components/common/toasts/toasts.component.scssindex e6dcb7a57..52f8f8957 100644--- a/src-ui/src/app/components/common/toasts/toasts.component.scss+++ b/src-ui/src/app/components/common/toasts/toasts.component.scss@@ -9,3 +9,14 @@.toast:not(.show) {display: block; // this corrects an ng-bootstrap bug that prevented animations}++::ng-deep .toast.error .toast-header {+ background-color: hsla(350, 79%, 40%, 0.8); // bg-danger+ border-color: black;+}++::ng-deep .toast.error .toast-body {+ background-color: hsla(350, 79%, 40%, 0.8); // bg-danger+ border-bottom-left-radius: inherit;+ border-bottom-right-radius: inherit;+}diff --git a/src-ui/src/app/services/toast.service.ts b/src-ui/src/app/services/toast.service.tsindex 7c35b624c..6bd1158bc 100644--- a/src-ui/src/app/services/toast.service.ts+++ b/src-ui/src/app/services/toast.service.ts@@ -11,6 +11,8 @@ export interface Toast {action?: anyactionName?: 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) {