Improve error handler
This commit is contained in:
parent
07bf7b8f97
commit
82f356a513
4 changed files with 29 additions and 24 deletions
|
|
@ -48,23 +48,26 @@
|
|||
at ${{buy.buyPrice.price}} {{buy.buyPrice.currency}}
|
||||
</div>
|
||||
|
||||
<input class="button dark-gray outline round expand"
|
||||
<input class="button black expand round"
|
||||
ng-style="{'background-color':index.backgroundColor}"
|
||||
type="submit" value="{{'Continue'|translate}}" ng-disabled="!buy.buyPrice.qty || buy.loading">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div ng-show="buy.show2faCodeInput && !buy.success">
|
||||
<p class="text-center text-gray" translate>
|
||||
The purchase price of ${{buy.buyPrice.price}} {{buy.buyPrice.currency}} will be immediately withdrawn from your bank account.
|
||||
<p class="text-gray" translate>
|
||||
${{buy.buyPrice.price}} {{buy.buyPrice.currency}} will be immediately withdrawn from your
|
||||
bank account. The total of {{buy.buyPrice.qty}} BTC will be purchased and deposited in your bitcoin wallet ({{index.walletName}}) in 2-4 business days.
|
||||
</p>
|
||||
<p class="text-center text-gray" translate>
|
||||
The total of {{buy.buyPrice.qty}} BTC will be purchased and deposited in your bitcoin wallet ({{index.walletName}}) in 2-4 business days.
|
||||
<p class="text-gray" translate>
|
||||
A SMS containing a confirmation code was sent to your phone. Please, enter code below
|
||||
</p>
|
||||
<form name="buyForm"
|
||||
ng-submit="buy.sendRequest(index.glideraToken, index.glideraPermissions, twoFaCode)" novalidate>
|
||||
<label translate>Enter 2FA Code</label>
|
||||
<label translate>Glidera 2FA Code</label>
|
||||
<input type="number" ng-model="twoFaCode" required>
|
||||
<input class="button dark-gray outline round expand"
|
||||
<input class="button black expand round"
|
||||
ng-style="{'background-color':index.backgroundColor}"
|
||||
type="submit" value="{{'Buy'|translate}}" ng-disabled="buyForm.$invalid || buy.loading">
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -49,23 +49,25 @@
|
|||
at ${{sell.sellPrice.price}} {{sell.sellPrice.currency}}
|
||||
</div>
|
||||
|
||||
<input class="button dark-gray outline round expand"
|
||||
<input class="button black expand round"
|
||||
ng-style="{'background-color':index.backgroundColor}"
|
||||
type="submit" value="{{'Continue'|translate}}" ng-disabled="!sell.sellPrice.qty || sell.loading">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div ng-show="sell.show2faCodeInput && !sell.success">
|
||||
<p class="text-center text-gray" translate>
|
||||
The bitcoin amount of {{sell.sellPrice.qty}} will be immediately sent from your bitcoin wallet ({{index.walletName}}) to Glidera.
|
||||
<p class="text-gray" translate>
|
||||
{{sell.sellPrice.qty}} BTC will be immediately sent from your wallet to Glidera. The total of ${{sell.sellPrice.subtotal}} {{sell.sellPrice.currency}} will be deposited in your bank account in 4-6 business days.
|
||||
</p>
|
||||
<p class="text-center text-gray" translate>
|
||||
The total of ${{sell.sellPrice.subtotal}} {{sell.sellPrice.currency}} will be deposited in your bank account in 4-6 business days.
|
||||
<p class="text-gray" translate>
|
||||
A SMS containing a confirmation code was sent to your phone. Please, enter code below
|
||||
</p>
|
||||
<form name="sellForm"
|
||||
ng-submit="sell.createTx(index.glideraToken, index.glideraPermissions, twoFaCode)" novalidate>
|
||||
<label translate>Enter 2FA Code</label>
|
||||
<label translate>Glidera 2FA Code</label>
|
||||
<input type="number" ng-model="twoFaCode" required>
|
||||
<input class="button dark-gray outline round expand"
|
||||
<input class="button black expand round"
|
||||
ng-style="{'background-color':index.backgroundColor}"
|
||||
type="submit" value="{{'Sell'|translate}}" ng-disabled="sellForm.$invalid || sell.loading">
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue