This commit is contained in:
Gabriel Bazán 2016-02-15 11:49:08 -03:00
commit 2813216a66
4 changed files with 23 additions and 8 deletions

View file

@ -916,6 +916,13 @@ angular.module('copayApp.controllers').controller('indexController', function($r
}, 100);
};
self.hideHistory = function() {
if (!self.historyShowShowAll) {
self.txHistory = self.txHistory.slice(0, 10);
self.historyShowShowAll = true;
}
};
self.filter = function(search) {
function formatDate(date) {
@ -1192,6 +1199,11 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setAddressbook(ab);
});
$rootScope.$on('Local/Searching', function(event, val) {
if (val) self.showAllHistory();
else self.hideHistory();
});
// UX event handlers
$rootScope.$on('Local/ColorUpdated', function(event) {
self.updateColor();