mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Fixed notifications
This commit is contained in:
@@ -129,6 +129,7 @@ export class NotificationComponent implements OnInit, OnDestroy {
|
||||
this[key] = item;
|
||||
} else if (key === 'title' || key === 'content') {
|
||||
let value = null;
|
||||
if (isNotEmpty(item)) {
|
||||
if (typeof item === 'string') {
|
||||
value = Observable.of(item);
|
||||
} else if (item instanceof Observable) {
|
||||
@@ -139,6 +140,7 @@ export class NotificationComponent implements OnInit, OnDestroy {
|
||||
// so converts it again to Observable
|
||||
value = Observable.of(item.value);
|
||||
}
|
||||
}
|
||||
this[key] = value
|
||||
} else {
|
||||
this[key] = this.domSanitizer.bypassSecurityTrustHtml(item);
|
||||
|
Reference in New Issue
Block a user