Merge pull request #6032 from cmgustavo/bug/collect-email-01

Prevent double click/tap on button confirm
This commit is contained in:
Gabriel Edgardo Bazán 2017-05-15 16:02:30 -03:00 committed by GitHub
commit eb945b4589
2 changed files with 13 additions and 10 deletions

View file

@ -48,6 +48,8 @@ angular.module('copayApp.controllers').controller('collectEmailController', func
};
$scope.save = function() {
$scope.disableButton = true;
$timeout(function() {
var enabled = true; // Set enabled email: true
emailService.updateEmail({
@ -60,6 +62,7 @@ angular.module('copayApp.controllers').controller('collectEmailController', func
$timeout(function() {
$scope.goNextView();
}, 200);
}, 200);
};
$scope.goNextView = function() {

View file

@ -28,7 +28,7 @@
</button>
</div>
<div class="col col-50">
<button class="button button-block button-stable" ng-click="save()">
<button class="button button-block button-stable" ng-disabled="disableButton" ng-click="save()">
{{'Confirm' | translate}}
</button>
</div>