Fix - 339 - receive is executed by an event out of angular, apply.

This commit is contained in:
Jean-Baptiste Dominguez 2018-05-22 11:27:10 +09:00
commit c5ae87e898
2 changed files with 6 additions and 5 deletions

View file

@ -126,8 +126,9 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
}
}
$scope.paymentReceivedCoin = $scope.wallet.coin;
$scope.showingPaymentReceived = true;
$scope.$apply();
$scope.$apply(function () {
$scope.showingPaymentReceived = true;
});
}
}
@ -248,8 +249,8 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
$scope.setAddress();
};
$scope.togglePaymentScreen = function() {
$scope.showingPaymentReceived = !$scope.showingPaymentReceived;
$scope.hidePaymentScreen = function() {
$scope.showingPaymentReceived = false;
};
$scope.showWalletSelector = function() {