add badge to recent txs
This commit is contained in:
parent
a99a133814
commit
9e33cde4cf
5 changed files with 13 additions and 6 deletions
|
|
@ -796,8 +796,8 @@ angular.module('copayApp.services')
|
|||
root.getNotifications = function(opts, cb) {
|
||||
opts = opts || {};
|
||||
|
||||
var TIME_STAMP = 60 * 60 * 6;
|
||||
var MAX = 100;
|
||||
var TIME_STAMP = 60 * 60 * 6;
|
||||
var MAX = 30;
|
||||
|
||||
var typeFilter = {
|
||||
'NewOutgoingTx': 1,
|
||||
|
|
@ -925,7 +925,8 @@ angular.module('copayApp.services')
|
|||
if (j == l) {
|
||||
notifications = lodash.sortBy(notifications, 'createdOn');
|
||||
notifications = lodash.compact(lodash.flatten(notifications)).slice(0, MAX);
|
||||
return cb(null, process(notifications));
|
||||
var total = notifications.length;
|
||||
return cb(null, process(notifications), total);
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue