MOBILE-2567 notifications: Fix tslint warning

main
Dani Palou 2018-09-07 15:50:05 +02:00
parent 8d6728101b
commit ec6ee6a51a
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ export class AddonNotificationsListPage {
// Check if mark all notifications as read is enabled and there are some to read.
if (this.notificationsProvider.isMarkAllNotificationsAsReadEnabled()) {
this.loadingMarkAllNotificationsAsRead = true;
return this.notificationsProvider.getUnreadNotificationsCount().then((unread) => {
this.canMarkAllNotificationsAsRead = unread > 0;
this.loadingMarkAllNotificationsAsRead = false;