show add to address book only from tab send
This commit is contained in:
parent
a6b3b204bd
commit
868e6b086f
2 changed files with 8 additions and 3 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue