Skip to content
Snippets Groups Projects
Commit 338b4ed9 authored by rhenck's avatar rhenck
Browse files

Add error warning to MessageService

Stronger then warning.
parent ff615673
No related branches found
No related tags found
No related merge requests found
......@@ -10,4 +10,8 @@ export class MessageService {
showWarning(text: string): void {
this._snackBar.open(text, undefined, { duration: 2000, panelClass: 'snackbar-warning' });
}
showError(text: string): void {
this._snackBar.open(text, undefined, { duration: 2000, panelClass: 'snackbar-error' });
}
}
......@@ -6,3 +6,4 @@ body {
}
.snackbar-warning {border: 3px double #ff4d4d}
.snackbar-error {background-color: #ff4d4d}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment