show add to address book only from tab send

This commit is contained in:
Gabriel Bazán 2016-09-22 10:30:35 -03:00
commit 868e6b086f
2 changed files with 8 additions and 3 deletions

View file

@ -12,12 +12,17 @@ angular.module('copayApp.controllers').controller('txStatusController', function
$scope.save = function(addressbookEntry) {
$scope.txStatusModal.hide();
$ionicHistory.nextViewOptions({
disableAnimate: true,
disableBack: true
});
$state.go('tabs.send.addressbook', {
fromSendTab: true,
addressbookEntry: addressbookEntry
})
});
}
$scope.fromSendTab = $ionicHistory.viewHistory().backView.stateName === "tabs.send.amount";
addressbookService.list(function(err, ab) {
if (err) $log.error(err);
if (ab[$scope.tx.toAddress]) {