From 868e6b086f03007a17608860b6a05b8163104377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Thu, 22 Sep 2016 10:30:35 -0300 Subject: [PATCH] show add to address book only from tab send --- public/views/modals/tx-status.html | 4 ++-- src/js/controllers/modals/txStatus.js | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/public/views/modals/tx-status.html b/public/views/modals/tx-status.html index 53fbd1e46..6d808fafb 100644 --- a/public/views/modals/tx-status.html +++ b/public/views/modals/tx-status.html @@ -7,10 +7,10 @@
Sent
-
+ -
+

Would you like to add this address to your address book?

diff --git a/src/js/controllers/modals/txStatus.js b/src/js/controllers/modals/txStatus.js index ea27d5921..ceb4065f8 100644 --- a/src/js/controllers/modals/txStatus.js +++ b/src/js/controllers/modals/txStatus.js @@ -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]) {