From 654a188f80fc1f089aa14837084664c908fe27d2 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 15 Jul 2020 11:15:50 +0200 Subject: allow sorting notifications --- .../my-account-notifications/my-account-notifications.component.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts') diff --git a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts index 0c1427d96..03b91e050 100644 --- a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts +++ b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts @@ -8,6 +8,8 @@ import { UserNotificationsComponent } from '@app/shared/shared-main' export class MyAccountNotificationsComponent { @ViewChild('userNotification', { static: true }) userNotification: UserNotificationsComponent + notificationSortType = 'created' + markAllAsRead () { this.userNotification.markAllAsRead() } @@ -15,4 +17,6 @@ export class MyAccountNotificationsComponent { hasUnreadNotifications () { return this.userNotification.notifications.filter(n => n.read === false).length !== 0 } + + onNotificationSortTypeChanged () {} } -- cgit v1.2.3