Alert when incoming transaction (not proposal)

This commit is contained in:
Gustavo Cortez 2014-05-20 14:31:00 -03:00
commit edb3e75800
3 changed files with 13 additions and 0 deletions

View file

@ -29,6 +29,12 @@ angular.module('copay.header').controller('HeaderController',
}
});
$rootScope.$watch('receivedFund', function(receivedFund) {
if (receivedFund) {
$notification.funds('Received fund', 'on ' + receivedFund[1], receivedFund);
}
});
$scope.isActive = function(item) {
if (item.link && item.link.replace('#','') == $location.path()) {
return true;