MOBILE-2567 notifications: Fix tslint warnings
parent
493af0d66f
commit
59c4c2141b
|
@ -121,7 +121,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()) {
|
||||||
promises.push(this.notificationsProvider.getUnreadNotificationsCount().then((unread) => {
|
promises.push(this.notificationsProvider.getUnreadNotificationsCount().then((unread) => {
|
||||||
this.canMarkAllNotificationsAsRead = unread > 0
|
this.canMarkAllNotificationsAsRead = unread > 0;
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
this.canMarkAllNotificationsAsRead = false;
|
this.canMarkAllNotificationsAsRead = false;
|
||||||
|
|
|
@ -244,10 +244,10 @@ export class AddonNotificationsProvider {
|
||||||
const params = {
|
const params = {
|
||||||
useridto: this.sitesProvider.getCurrentSiteUserId()
|
useridto: this.sitesProvider.getCurrentSiteUserId()
|
||||||
};
|
};
|
||||||
|
|
||||||
return this.sitesProvider.getCurrentSite().write('core_message_mark_all_notifications_as_read', params);
|
return this.sitesProvider.getCurrentSite().write('core_message_mark_all_notifications_as_read', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mark message notification as read.
|
* Mark message notification as read.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue