From 0026ab4c3f1d7be021ffbb3a04b1d5e516629cc0 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Tue, 26 Apr 2016 16:18:03 +0000 Subject: [PATCH] Only show the 50 most recent events on the dashboard Change-Id: I31fb7eac4501c396d72d6da39307fbb162de7a8a --- src/app/dashboard/controller/dashboard_controller.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/dashboard/controller/dashboard_controller.js b/src/app/dashboard/controller/dashboard_controller.js index 971dea80..f090c846 100644 --- a/src/app/dashboard/controller/dashboard_controller.js +++ b/src/app/dashboard/controller/dashboard_controller.js @@ -77,7 +77,11 @@ angular.module('sb.dashboard').controller('DashboardController', // Load the user's subscription events. $scope.subscriptionEvents = null; SubscriptionEvent.browse({ - subscriber_id: currentUser.id + subscriber_id: currentUser.id, + offset: 0, + limit: 50, + sort_dir: 'desc', + sort_field: 'created_at' }, function (results) { // First go through the results and decode the event info.