Code Review
/
src
/
xds
/
xds-agent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add sanity check when adding a new pathmap project/folder
[src/xds/xds-agent.git]
/
webapp
/
src
/
app
/
services
/
alert.service.ts
diff --git
a/webapp/src/app/services/alert.service.ts
b/webapp/src/app/services/alert.service.ts
index
c3cae7a
..
2978e84
100644
(file)
--- 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) {
}
public add(al: IAlert) {
+ let msg = String(al.msg).replace("\n", "<br>");
this._alerts.push({
show: true,
type: al.type,
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,
dismissible: al.dismissible || true,
dismissTimeout: (al.dismissTimeout * 1000) || 0,
id: this.uid,