From e8cf16e8d81ef7d83796a3e2da33764781245ef7 Mon Sep 17 00:00:00 2001 From: insanity Date: Fri, 20 Apr 2018 18:54:50 +0900 Subject: [PATCH] notification bug fix --- .../layout/notification/app.notification.component.html | 1 + .../layout/notification/app.notification.component.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/commons/component/layout/notification/app.notification.component.html b/src/app/commons/component/layout/notification/app.notification.component.html index 911c178..63532fb 100644 --- a/src/app/commons/component/layout/notification/app.notification.component.html +++ b/src/app/commons/component/layout/notification/app.notification.component.html @@ -2,6 +2,7 @@ {{noti.title}} {{noti.message}} + {{noti.createDate | date: 'short'}}
  • diff --git a/src/app/commons/component/layout/notification/app.notification.component.ts b/src/app/commons/component/layout/notification/app.notification.component.ts index 7ce3c61..b1dfde4 100644 --- a/src/app/commons/component/layout/notification/app.notification.component.ts +++ b/src/app/commons/component/layout/notification/app.notification.component.ts @@ -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); } }