diff --git a/src/views/account.html b/src/views/account.html index a3a743b42..fe99c4bec 100644 --- a/src/views/account.html +++ b/src/views/account.html @@ -298,7 +298,7 @@
- +
@@ -316,6 +316,9 @@
+
+ +
diff --git a/src/views/account.js b/src/views/account.js index 290425160..ec340262b 100644 --- a/src/views/account.js +++ b/src/views/account.js @@ -385,9 +385,10 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client notifications: [], activeNotification: null, busy: true, + all: false, refresh: function () { - Client.getNotifications(false, 1, 100, function (error, result) { + Client.getNotifications($scope.notifications.all ? null : false, 1, 20, function (error, result) { if (error) return console.error(error); $scope.notifications.notifications = result; @@ -396,11 +397,14 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client }); }, + showOld: function () { + $scope.notifications.all = true; + $scope.notifications.refresh(); + }, + clicked: function (notification) { if ($scope.notifications.activeNotification === notification) return $scope.notifications.activeNotification = null; $scope.notifications.activeNotification = notification; - - console.log(notification) }, ack: function (notification, callback) {