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
|
|
@ -7,10 +7,10 @@
|
|||
<div class="size-16 text-gray m10v">
|
||||
<span translate>Sent</span>
|
||||
</div>
|
||||
<div class="text-center m20t" ng-if="entryExist">
|
||||
<div class="text-center m20t" ng-if="entryExist || !fromSendTab">
|
||||
<a class="button button-positive" ng-click="cancel()" translate>OKAY</a>
|
||||
</div>
|
||||
<div class="collect-address" ng-if="!entryExist">
|
||||
<div class="collect-address" ng-if="!entryExist && fromSendTab">
|
||||
<div class="row">
|
||||
<p translate class="col">Would you like to add this address to your address book?</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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