2016-10-16 21:51:50 -03:00
|
|
|
<ion-view id="view-confirm" hide-tabs>
|
2016-09-01 12:36:59 -04:00
|
|
|
<ion-nav-bar class="bar-royal">
|
2016-09-21 14:22:55 -03:00
|
|
|
<ion-nav-title>
|
|
|
|
|
{{'Confirm'|translate}}
|
|
|
|
|
</ion-nav-title>
|
2016-08-30 12:52:28 -03:00
|
|
|
<ion-nav-back-button>
|
|
|
|
|
</ion-nav-back-button>
|
|
|
|
|
</ion-nav-bar>
|
|
|
|
|
|
2016-11-25 17:05:35 -03:00
|
|
|
<ion-content ng-class="{'add-bottom-for-cta': !insufficientFunds && !noMatchingWallet}">
|
2016-10-12 11:45:11 -04:00
|
|
|
<div class="list">
|
|
|
|
|
<div class="item head">
|
|
|
|
|
<div class="sending-label">
|
2016-11-08 16:55:02 -05:00
|
|
|
<img src="img/icon-tx-sent-outline.svg">
|
2016-12-02 17:18:48 -03:00
|
|
|
<span translate ng-if="!useSendMax && !isGlidera">Sending</span>
|
2016-11-29 14:28:43 -03:00
|
|
|
<span translate ng-if="useSendMax">Sending maximum amount</span>
|
2016-12-02 17:18:48 -03:00
|
|
|
<span ng-if="isGlidera && glideraBuy">Buying</span>
|
2016-12-05 10:27:53 -03:00
|
|
|
<span ng-if="isGlidera && glideraSell">Selling</span>
|
2016-10-12 11:45:11 -04:00
|
|
|
</div>
|
|
|
|
|
<div class="amount-label">
|
2016-11-23 11:23:19 -03:00
|
|
|
<div class="amount">{{displayAmount || '...'}} <span class="unit">{{displayUnit}}</span></div>
|
2016-11-25 15:24:02 -03:00
|
|
|
<div class="alternative">{{alternativeAmountStr || '...'}}</div>
|
2016-10-12 11:45:11 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info">
|
2016-10-26 16:36:31 -04:00
|
|
|
<div class="item single-line" ng-if="paypro">
|
2016-10-20 15:38:57 -03:00
|
|
|
<span class="label" translate>Payment Expires:</span>
|
|
|
|
|
<span class="item-note" ng-if="!paymentExpired.value">{{remainingTimeStr.value}}</span>
|
|
|
|
|
<span class="item-note" ng-if="paymentExpired.value" ng-style="{'color': 'red'}" translate>Expired</span>
|
|
|
|
|
</div>
|
2016-10-12 11:45:11 -04:00
|
|
|
<div class="item">
|
2016-12-02 17:18:48 -03:00
|
|
|
<span class="label" ng-if="!isGlidera" translate>To</span>
|
|
|
|
|
<span class="label" ng-if="isGlidera && glideraBuy">From</span>
|
2016-10-14 12:59:31 -03:00
|
|
|
<span class="payment-proposal-to">
|
2016-12-02 14:48:39 -03:00
|
|
|
<img ng-if="!cardId && !isGiftCard && !isGlidera" src="img/icon-bitcoin-small.svg">
|
2016-10-13 14:41:37 -03:00
|
|
|
<img ng-if="cardId" src="img/icon-card.svg" width="34">
|
2016-11-29 21:49:56 -03:00
|
|
|
<i ng-if="isGiftCard" class="icon big-icon-svg">
|
2016-11-28 17:01:07 -03:00
|
|
|
<div class="bg icon-amazon"></div>
|
|
|
|
|
</i>
|
2016-12-02 14:48:39 -03:00
|
|
|
<img ng-if="isGlidera" src="img/glidera-logo.png" width="90"/>
|
2016-10-14 12:59:31 -03:00
|
|
|
|
2016-10-26 16:36:31 -04:00
|
|
|
<div copy-to-clipboard="toAddress" ng-if="!paypro" class="ellipsis">
|
2016-10-20 12:34:20 -03:00
|
|
|
<contact ng-if="!toName" address="{{toAddress}}"></contact>
|
|
|
|
|
<span class="m15l size-14" ng-if="toName">{{toName}}</span>
|
|
|
|
|
</div>
|
2016-10-14 12:59:31 -03:00
|
|
|
|
2016-10-26 16:36:31 -04:00
|
|
|
<div ng-if="paypro" ng-click="openPPModal(paypro)" class="m15l size-14 w100p pointer">
|
|
|
|
|
<i ng-show="paypro.verified && paypro.caTrusted" class="ion-locked" style="color:green"></i>
|
|
|
|
|
<i ng-show="!paypro.caTrusted" class="ion-unlocked" style="color:red"></i>
|
|
|
|
|
<span class="ellipsis" ng-show="!toName">{{paypro.domain || paypro.toAddress}}</span>
|
2016-10-14 12:59:31 -03:00
|
|
|
<span ng-show="toName">{{toName}}</span>
|
2016-10-06 19:23:39 -03:00
|
|
|
</div>
|
2016-10-12 11:45:11 -04:00
|
|
|
<!-- <contact ng-if="!tx.hasMultiplesOutputs" class="ellipsis" address="{{toAddress}}"></contact>
|
|
|
|
|
<span ng-if="tx.hasMultiplesOutputs" translate>Multiple recipients</span> -->
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2016-11-29 11:05:55 -03:00
|
|
|
<a class="item item-icon-right" ng-hide="!useSendMax && (insufficientFunds || noMatchingWallet)" ng-click="showWalletSelector()">
|
2016-12-02 17:18:48 -03:00
|
|
|
<span class="label" ng-if="!isGlidera" translate>From</span>
|
|
|
|
|
<span class="label" ng-if="isGlidera && glideraBuy" translate>To</span>
|
2016-12-05 11:00:13 -03:00
|
|
|
<span class="label" ng-if="isGlidera && glideraSell" translate>From</span>
|
2016-10-12 11:45:11 -04:00
|
|
|
<div class="wallet">
|
|
|
|
|
<i class="icon big-icon-svg">
|
|
|
|
|
<img src="img/icon-wallet.svg" ng-style="{'background-color': wallet.color}" class="bg"/>
|
|
|
|
|
</i>
|
|
|
|
|
<div>{{wallet.name}}</div>
|
|
|
|
|
</div>
|
2016-10-12 12:15:24 -04:00
|
|
|
<i class="icon bp-arrow-right"></i>
|
|
|
|
|
</a>
|
2016-12-02 15:40:36 -03:00
|
|
|
<a class="item single-line item-icon-right" ng-if="!insufficientFunds && !noMatchingWallet && !isGlidera" ng-click="showDescriptionPopup()">
|
2016-10-13 10:24:15 -03:00
|
|
|
<span class="label" translate>Add Memo</span>
|
|
|
|
|
<span class="item-note m10l">
|
2016-10-12 11:45:11 -04:00
|
|
|
{{description}}
|
|
|
|
|
</span>
|
2016-10-12 12:15:24 -04:00
|
|
|
<i class="icon bp-arrow-right"></i>
|
|
|
|
|
</a>
|
2016-12-02 14:48:39 -03:00
|
|
|
<div class="item single-line" ng-if="!insufficientFunds && !noMatchingWallet && !isGlidera">
|
2016-10-13 10:24:15 -03:00
|
|
|
<span class="label" translate>Fee: {{feeLevel}}</span>
|
2016-10-12 11:45:11 -04:00
|
|
|
<span class="item-note">
|
2016-10-13 10:32:44 -03:00
|
|
|
{{fee || '...'}}
|
2016-10-12 11:45:11 -04:00
|
|
|
</span>
|
2016-10-14 12:59:31 -03:00
|
|
|
</div>
|
2016-12-05 10:27:53 -03:00
|
|
|
<div class="item" ng-show="isGlidera && glideraBuy">
|
2016-12-02 17:18:48 -03:00
|
|
|
<span class="label">Information</span>
|
|
|
|
|
<div class="glidera-explanation">
|
|
|
|
|
<div class="glidera-description" ng-show="buyPrice.qty">
|
|
|
|
|
Buy {{buyPrice.subtotal|currency:'':2}} {{buyPrice.currency}} in Bitcoin at {{buyPrice.price}} {{buyPrice.currency}}/BTC
|
|
|
|
|
</div>
|
|
|
|
|
<div class="glidera-description">
|
|
|
|
|
Fiat will be immediately withdrawn from your bank account.
|
|
|
|
|
</div>
|
|
|
|
|
<div class="glidera-description">
|
|
|
|
|
The bitcoins will be purchased and deposited to "{{wallet.name || '...' }}" wallet in 2-4 business days.
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-12-05 10:27:53 -03:00
|
|
|
<div class="item" ng-show="isGlidera && glideraSell">
|
|
|
|
|
<span class="label">Information</span>
|
|
|
|
|
<div class="glidera-explanation">
|
|
|
|
|
<div class="glidera-description" ng-show="sellPrice.qty">
|
|
|
|
|
Sell {{sellPrice.subtotal|currency:'':2}} {{sellPrice.currency}} in Bitcoin at {{sellPrice.price|currency:'':2}} {{sellPrice.currency}}/BTC
|
|
|
|
|
</div>
|
|
|
|
|
<div class="glidera-description">
|
|
|
|
|
Fiat will be deposited in your bank account in 4-6 business days.
|
|
|
|
|
</div>
|
|
|
|
|
<div class="glidera-description">
|
|
|
|
|
Bitcoins will be immediately sent from your "{{wallet.name || '...' }}" wallet to Glidera.
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-11-23 11:23:19 -03:00
|
|
|
<div class="text-center" ng-show="noMatchingWallet">
|
|
|
|
|
<span class="badge badge-energized" translate>No wallets available</span>
|
|
|
|
|
</div>
|
2016-11-25 17:05:35 -03:00
|
|
|
<div class="text-center" ng-show="insufficientFunds">
|
2016-11-23 11:23:19 -03:00
|
|
|
<span class="badge badge-energized" translate>Insufficient funds</span>
|
|
|
|
|
</div>
|
2016-10-12 11:45:11 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-content>
|
2016-11-16 15:35:25 -05:00
|
|
|
<click-to-accept
|
2016-12-02 17:18:48 -03:00
|
|
|
ng-click="wallet ? approve(statusChangeHandler) : null"
|
2016-11-25 17:05:35 -03:00
|
|
|
ng-if="!isCordova && wallets[0] && !insufficientFunds && !noMatchingWallet"
|
2016-12-02 17:18:48 -03:00
|
|
|
click-send-status="sendStatus"
|
|
|
|
|
has-wallet-chosen="wallet">
|
2016-11-16 15:35:25 -05:00
|
|
|
Click to pay
|
|
|
|
|
</click-to-accept>
|
2016-10-12 11:45:11 -04:00
|
|
|
<slide-to-accept
|
2016-12-02 17:18:48 -03:00
|
|
|
ng-disabled="!wallet"
|
2016-11-25 17:05:35 -03:00
|
|
|
ng-if="isCordova && wallets[0] && !insufficientFunds && !noMatchingWallet"
|
2016-12-02 17:18:48 -03:00
|
|
|
slide-on-confirm="wallet ? onConfirm() : null"
|
|
|
|
|
slide-send-status="sendStatus"
|
|
|
|
|
has-wallet-chosen="wallet">
|
2016-10-12 11:45:11 -04:00
|
|
|
Slide to pay
|
|
|
|
|
</slide-to-accept>
|
|
|
|
|
<slide-to-accept-success
|
|
|
|
|
slide-success-show="sendStatus === 'success'"
|
|
|
|
|
slide-success-on-confirm="onSuccessConfirm()"
|
2016-10-20 15:38:57 -03:00
|
|
|
slide-success-hide-on-confirm="true">
|
2016-10-12 11:45:11 -04:00
|
|
|
<span ng-hide="wallet.m > 1">Payment Sent</span>
|
|
|
|
|
<span ng-show="wallet.m > 1">Proposal Created</span>
|
2016-12-02 15:40:36 -03:00
|
|
|
<div ng-show="isGlidera" class="glidera-success">
|
2016-12-05 10:27:53 -03:00
|
|
|
<span ng-show="glideraBuy">A transfer has been initiated from your bank account</span>
|
|
|
|
|
<span ng-show="glideraBuy">your bitcoins should arrive to your wallet in 2-4 business day</span>
|
|
|
|
|
<span ng-show="glideraSell">A transfer has been initiated to your bank account</span>
|
|
|
|
|
<span ng-show="glideraSell">should arrive in 4-6 business days</span>
|
2016-12-02 15:40:36 -03:00
|
|
|
</div>
|
2016-10-12 11:45:11 -04:00
|
|
|
</slide-to-accept-success>
|
2016-10-12 20:13:28 -04:00
|
|
|
|
|
|
|
|
<wallet-selector
|
2016-12-02 17:18:48 -03:00
|
|
|
wallet-selector-title="walletSelectorTitle"
|
2016-10-12 20:13:28 -04:00
|
|
|
wallet-selector-wallets="wallets"
|
|
|
|
|
wallet-selector-selected-wallet="wallet"
|
|
|
|
|
wallet-selector-show="showWallets"
|
2016-10-20 15:38:57 -03:00
|
|
|
wallet-selector-on-select="onWalletSelect">
|
2016-10-12 20:13:28 -04:00
|
|
|
</wallet-selector>
|
|
|
|
|
|
2016-10-12 11:45:11 -04:00
|
|
|
</ion-view>
|