Only show 'mark all as read' AFTER there are notifications

Hide the 'mark all read' button while we fetch notifications.
We can't mark all as read before there are any actual unread
notifications in the popup anyways.

Change-Id: I38ace6a3f8b7898bdcd82ce650947f0c7ef319e2
This commit is contained in:
Moriel Schottlender 2015-09-09 11:50:54 -07:00
parent 9a2262d694
commit 71999b28c4

View file

@ -210,6 +210,7 @@
}
this.pushPending();
this.markAllReadButton.toggle( false );
this.notificationsModel.fetchNotifications()
.then( function ( idArray ) {
// Clip again