MOBILE-2567 notifications: Fix tslint warning
parent
8d6728101b
commit
ec6ee6a51a
|
@ -176,6 +176,7 @@ export class AddonNotificationsListPage {
|
||||||
// Check if mark all notifications as read is enabled and there are some to read.
|
// Check if mark all notifications as read is enabled and there are some to read.
|
||||||
if (this.notificationsProvider.isMarkAllNotificationsAsReadEnabled()) {
|
if (this.notificationsProvider.isMarkAllNotificationsAsReadEnabled()) {
|
||||||
this.loadingMarkAllNotificationsAsRead = true;
|
this.loadingMarkAllNotificationsAsRead = true;
|
||||||
|
|
||||||
return this.notificationsProvider.getUnreadNotificationsCount().then((unread) => {
|
return this.notificationsProvider.getUnreadNotificationsCount().then((unread) => {
|
||||||
this.canMarkAllNotificationsAsRead = unread > 0;
|
this.canMarkAllNotificationsAsRead = unread > 0;
|
||||||
this.loadingMarkAllNotificationsAsRead = false;
|
this.loadingMarkAllNotificationsAsRead = false;
|
||||||
|
|
Loading…
Reference in New Issue