Disable button after pressing
This commit is contained in:
parent
eb58604692
commit
6d5f396102
4 changed files with 32 additions and 45 deletions
|
|
@ -103,7 +103,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
<button type="submit" class="button round black expand m0" ng-disabled="setupForm.$invalid">
|
||||
<button type="submit" class="button round black expand m0" ng-disabled="setupForm.$invalid || create.loading">
|
||||
<span translate>Create</span>
|
||||
{{requiredCopayers}}-<span translate>of</span>-{{totalCopayers}} <span translate>wallet</span>
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div class="row" ng-show="!import.loading">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<form name="importForm" ng-submit="import.import(importForm)" novalidate>
|
||||
<div class="box-notification" ng-show="import.error">
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
name="password" ng-model="import.password">
|
||||
</div>
|
||||
<button translate type="submit" class="button round expand black"
|
||||
ng-disabled="importForm.$invalid || !import.password">
|
||||
ng-disabled="importForm.$invalid || !import.password || import.loading">
|
||||
Import backup
|
||||
</button>
|
||||
</form>
|
||||
|
|
@ -60,8 +60,6 @@
|
|||
<button class=" outline dark-gray tiny round"> <span translate>Import here</span>
|
||||
<i class="icon-arrow-right3 size-14"></i>
|
||||
</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
ng-init="titleSection='Import legacy wallet'; goBackToState = 'import'; noColor = true">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="content p20v" ng-controller="importLegacyController as importLegacy">
|
||||
<div class="row m20t">
|
||||
<div class="large-12 columns">
|
||||
|
|
@ -51,28 +49,18 @@
|
|||
|
||||
<button translate type="submit"
|
||||
class="button black round expand m0"
|
||||
ng-disabled="deviceForm.$invalid">
|
||||
ng-disabled="importForm.$invalid">
|
||||
Import
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<form name="importLegacyForm" ng-submit="importLegacy.import(importLegacyForm)" novalidate>
|
||||
<div class="box-notification" ng-show="error">
|
||||
<span class="text-warning size-14">
|
||||
{{error|translate}}
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="text-center p20v">
|
||||
<a class="m20t tiny button outline round light-gray " ng-click="$root.openExternalLink('https://github.com/bitpay/copay/releases/tag/v0.10.0')" translate>
|
||||
Learn more about Wallet Migration
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -83,7 +83,8 @@
|
|||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<button translate type="submit" class="button expand black m0 round" ng-disabled="joinForm.$invalid">Join</button>
|
||||
<button translate type="submit" class="button expand black m0 round"
|
||||
ng-disabled="joinForm.$invalid || join.loading">Join</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue