only show matching network wallet in payment intents

This commit is contained in:
Matias Alejo Garcia 2015-04-23 16:17:18 -03:00
commit cd901f5b3e
4 changed files with 88 additions and 66 deletions

View file

@ -36,8 +36,11 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope,
var ref = window.open(url, '_blank', 'location=no');
};
root.path = function(path) {
$state.transitionTo(path);
root.path = function(path, cb) {
$state.transitionTo(path)
.then(function() {
if (cb) return cb();
});
hideSidebars();
};
@ -51,15 +54,17 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope,
if (fc && !fc.isComplete()) {
root.path('copayers');
} else {
root.path('walletHome');
$rootScope.$emit('Local/SetTab', 'walletHome');
root.path('walletHome', function() {
$rootScope.$emit('Local/SetTab', 'walletHome');
});
}
};
root.send = function() {
root.path('walletHome');
$rootScope.$emit('Local/SetTab', 'walletHome');
root.path('walletHome', function() {
$rootScope.$emit('Local/SetTab', 'send');
});
};
root.home = function() {