diff options
Diffstat (limited to 'webapp/src/app/services/alert.service.ts')
-rw-r--r-- | webapp/src/app/services/alert.service.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/src/app/services/alert.service.ts b/webapp/src/app/services/alert.service.ts index c3cae7a..2978e84 100644 --- a/webapp/src/app/services/alert.service.ts +++ b/webapp/src/app/services/alert.service.ts @@ -45,10 +45,11 @@ export class AlertService { } public add(al: IAlert) { + let msg = String(al.msg).replace("\n", "<br>"); this._alerts.push({ show: true, type: al.type, - msg: this.sanitizer.sanitize(SecurityContext.HTML, al.msg), + msg: this.sanitizer.sanitize(SecurityContext.HTML, msg), dismissible: al.dismissible || true, dismissTimeout: (al.dismissTimeout * 1000) || 0, id: this.uid, |