mirror of https://github.com/BTCPrivate/copay.git
Prevent double click/tap on button confirm
This commit is contained in:
parent
459c005a46
commit
6d5fb581a6
|
@ -48,17 +48,19 @@ angular.module('copayApp.controllers').controller('collectEmailController', func
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.save = function() {
|
$scope.save = function() {
|
||||||
var enabled = true; // Set enabled email: true
|
|
||||||
|
|
||||||
emailService.updateEmail({
|
|
||||||
enabled: enabled,
|
|
||||||
email: enabled ? $scope.data.email : null
|
|
||||||
});
|
|
||||||
|
|
||||||
if ($scope.data.accept) collectEmail();
|
|
||||||
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.goNextView();
|
var enabled = true; // Set enabled email: true
|
||||||
|
|
||||||
|
emailService.updateEmail({
|
||||||
|
enabled: enabled,
|
||||||
|
email: enabled ? $scope.data.email : null
|
||||||
|
});
|
||||||
|
|
||||||
|
if ($scope.data.accept) collectEmail();
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.goNextView();
|
||||||
|
}, 200);
|
||||||
}, 200);
|
}, 200);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-50">
|
<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}}
|
{{'Confirm' | translate}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue