MOBILE-2567 notifications: Fix tslint warnings

main
Dani Palou 2018-09-03 12:18:53 +02:00
parent 493af0d66f
commit 59c4c2141b
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ export class AddonNotificationsListPage {
// Check if mark all notifications as read is enabled and there are some to read.
if (this.notificationsProvider.isMarkAllNotificationsAsReadEnabled()) {
promises.push(this.notificationsProvider.getUnreadNotificationsCount().then((unread) => {
this.canMarkAllNotificationsAsRead = unread > 0
this.canMarkAllNotificationsAsRead = unread > 0;
}));
} else {
this.canMarkAllNotificationsAsRead = false;

View File

@ -244,10 +244,10 @@ export class AddonNotificationsProvider {
const params = {
useridto: this.sitesProvider.getCurrentSiteUserId()
};
return this.sitesProvider.getCurrentSite().write('core_message_mark_all_notifications_as_read', params);
}
/**
* Mark message notification as read.
*