ensure scan view resumes on action sheet close

This commit is contained in:
Marty Alcala 2016-10-18 17:38:47 -04:00
commit 0d34b4d2f7
3 changed files with 9 additions and 3 deletions

View file

@ -22,14 +22,18 @@ angular.module('copayApp.directives')
scope.sendPaymentToAddress = function(bitcoinAddress) {
scope.showMenu = false;
$state.go('tabs.send').then(function() {
$state.transitionTo('tabs.send.amount', {toAddress: bitcoinAddress});
$timeout(function() {
$state.transitionTo('tabs.send.amount', {toAddress: bitcoinAddress});
}, 50);
});
};
scope.addToAddressBook = function(bitcoinAddress) {
scope.showMenu = false;
$timeout(function() {
$state.go('tabs.send').then(function() {
$state.transitionTo('tabs.send.addressbook', {addressbookEntry: bitcoinAddress});
$timeout(function() {
$state.transitionTo('tabs.send.addressbook', {addressbookEntry: bitcoinAddress});
}, 10);
});
}, 100);
};