X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=webapp%2Fsrc%2Fapp%2Fservices%2Falert.service.ts;h=2978e846717874919ac414c44637792976df71d4;hb=57670b6f5a8e98c80670b0627bfad7dec7085f54;hp=c3cae7a57e42e781e64f8afc3634f287aabc2f88;hpb=97ca1f277dc8b6973d6fa67add5593a9c395ce60;p=src%2Fxds%2Fxds-agent.git 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", "
"); 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,