diff --git a/public/views/confirm.html b/public/views/confirm.html index b4f1beebd..e57208dea 100644 --- a/public/views/confirm.html +++ b/public/views/confirm.html @@ -52,6 +52,6 @@ - - + + 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
-
+
OKAY
-
+

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

diff --git a/public/views/modals/txp-details.html b/public/views/modals/txp-details.html index e551c6294..b340e1bf5 100644 --- a/public/views/modals/txp-details.html +++ b/public/views/modals/txp-details.html @@ -162,5 +162,5 @@
- + diff --git a/src/js/controllers/modals/txStatus.js b/src/js/controllers/modals/txStatus.js index 8d596ee6f..ceb4065f8 100644 --- a/src/js/controllers/modals/txStatus.js +++ b/src/js/controllers/modals/txStatus.js @@ -1,21 +1,28 @@ 'use strict'; -angular.module('copayApp.controllers').controller('txStatusController', function($scope, $timeout, $state, $log, addressbookService) { +angular.module('copayApp.controllers').controller('txStatusController', function($scope, $timeout, $state, $ionicHistory, $log, addressbookService) { if ($scope.cb) $timeout($scope.cb, 100); $scope.cancel = function() { + $ionicHistory.clearHistory(); + $state.go('tabs.home'); $scope.txStatusModal.hide(); }; $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]) {