<hr>
- <div *ngFor="let notification of notifications; let i = index">
+ <div *ngFor="let notification of notifications; let i = index"
+ [ngClass]="notification.borderClass">
<div class="card tc_notification border-0">
<div class="row no-gutters">
<div class="col-md-2 text-center">
textClass: string;
iconClass: string;
duration: number;
+ borderClass: string;
private textClasses = ['text-danger', 'text-info', 'text-success'];
private iconClasses = [Icons.warning, Icons.info, Icons.check];
+ private borderClasses = ['border-danger', 'border-info', 'border-success'];
constructor(private config: CdNotificationConfig = new CdNotificationConfig()) {
super(config.type, config.title, config.message, config.options, config.application);
this.timestamp = new Date().toJSON();
this.iconClass = this.iconClasses[this.type];
this.textClass = this.textClasses[this.type];
+ this.borderClass = this.borderClasses[this.type];
this.isFinishedTask = config.isFinishedTask;
}
}