notification bug fix
This commit is contained in:
parent
1547cce9c8
commit
e8cf16e8d8
|
@ -2,6 +2,7 @@
|
|||
<a *ngIf="i < 5" href="javascript:void(0)" class="topbar-message" (click)="onNotiClick(noti)" [ngStyle]="noti.confirmDate ? '' : {'background-color': 'lightblue'}">
|
||||
<span>{{noti.title}}</span>
|
||||
<span>{{noti.message}}</span>
|
||||
<span>{{noti.createDate | date: 'short'}}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li role="menuitem">
|
||||
|
|
|
@ -76,6 +76,8 @@ export class AppNotificationComponent implements OnInit, AfterContentInit {
|
|||
this.router.navigate(['notification']);
|
||||
}
|
||||
|
||||
noNotiClick() {
|
||||
onNotiClick(notification: Notification) {
|
||||
this.detailStore.dispatch(new DetailStore.MarkAsRead(notification));
|
||||
alert('Will redirect to ' + notification.url);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user