Only show the 50 most recent events on the dashboard

Change-Id: I31fb7eac4501c396d72d6da39307fbb162de7a8a
This commit is contained in:
Adam Coldrick 2016-04-26 16:18:03 +00:00
parent 079263a77d
commit 0026ab4c3f

View File

@ -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.