summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/app/projects/projectAddModal.component.ts2
-rw-r--r--webapp/src/app/services/alert.service.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/webapp/src/app/projects/projectAddModal.component.ts b/webapp/src/app/projects/projectAddModal.component.ts
index 1584b5b..1352060 100644
--- a/webapp/src/app/projects/projectAddModal.component.ts
+++ b/webapp/src/app/projects/projectAddModal.component.ts
@@ -139,7 +139,7 @@ export class ProjectAddModalComponent {
},
err => {
- this.alert.error("Configuration ERROR: " + err, 60);
+ this.alert.error(err, 60);
this.hide();
});
}
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,