1 import { Component, ViewChild } from '@angular/core'
2 import { UserNotificationsComponent } from '@app/shared/shared-main'
5 templateUrl: './my-account-notifications.component.html',
6 styleUrls: [ './my-account-notifications.component.scss' ]
8 export class MyAccountNotificationsComponent {
9 @ViewChild('userNotification', { static: true }) userNotification: UserNotificationsComponent
11 notificationSortType = 'created'
14 this.userNotification.markAllAsRead()
17 hasUnreadNotifications () {
18 return this.userNotification.notifications.filter(n => n.read === false).length !== 0
21 onNotificationSortTypeChanged () {}