.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;
+}
action?: any
actionName?: string
+
+ classname?: string
}
@Injectable({
}
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) {