2016-10-16 17:51:50 -07:00
< ion-view id = "view-confirm" hide-tabs >
2016-09-01 09:36:59 -07:00
< ion-nav-bar class = "bar-royal" >
2016-09-21 10:22:55 -07:00
< ion-nav-title >
{{'Confirm'|translate}}
< / ion-nav-title >
2016-08-30 08:52:28 -07:00
< ion-nav-back-button >
< / ion-nav-back-button >
< / ion-nav-bar >
2016-11-25 12:05:35 -08:00
< ion-content ng-class = "{'add-bottom-for-cta': !insufficientFunds && !noMatchingWallet}" >
2016-10-12 08:45:11 -07:00
< div class = "list" >
< div class = "item head" >
< div class = "sending-label" >
2016-11-08 13:55:02 -08:00
< img src = "img/icon-tx-sent-outline.svg" >
2016-12-12 09:45:12 -08:00
< span translate ng-if = "!useSendMax && !(isGlidera || isCoinbase)" > Sending< / span >
2016-11-29 09:28:43 -08:00
< span translate ng-if = "useSendMax" > Sending maximum amount< / span >
2016-12-12 09:45:12 -08:00
< span ng-if = "(isGlidera || isCoinbase) == 'buy'" > Buying< / span >
< span ng-if = "(isGlidera || isCoinbase) == 'sell'" > Selling< / span >
2016-10-12 08:45:11 -07:00
< / div >
< div class = "amount-label" >
2016-11-23 06:23:19 -08:00
< div class = "amount" > {{displayAmount || '...'}} < span class = "unit" > {{displayUnit}}< / span > < / div >
2016-12-08 11:35:25 -08:00
< div class = "right size-12" ng-if = "cardId" ng-init = "getRates()" > {{exchangeRate}}< / div >
2016-11-25 10:24:02 -08:00
< div class = "alternative" > {{alternativeAmountStr || '...'}}< / div >
2016-10-12 08:45:11 -07:00
< / div >
< / div >
< div class = "info" >
2016-10-26 13:36:31 -07:00
< div class = "item single-line" ng-if = "paypro" >
2016-10-20 11:38:57 -07: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-12-22 15:37:10 -08:00
< div class = "item single-line" ng-if = "isCoinbase == 'sell'" >
At what percentage lower price would you accept to sell?
< / div >
< label class = "item item-input item-select" ng-if = "isCoinbase == 'sell' && priceSensitivity" >
< span class = "label" > Price Sensitivity< / span >
< select
ng-model="selectedPriceSensitivity.data"
ng-options="item as item.name for item in priceSensitivity track by item.value">
< / select >
< / label >
< div class = "item" ng-if = "isCoinbase == 'sell' && selectedPriceSensitivity" >
< div class = "m10b size-12" >
Coinbase has not yet implemented an immediate method to sell bitcoin from a wallet. To make this sale, funds
will be sent to your Coinbase account, and sold when Coinbase accepts the transaction (usually one
hour).
< / div >
< div >
< div >
Estimated sale value:
< span ng-if = "coinbaseSellPrice" >
{{coinbaseSellPrice.amount * coinbaseAmountBTC | currency : 'USD ' : 2}}
< / span >
< / div >
Still sell if price fall until:
< span ng-if = "coinbaseSellPrice" >
{{(coinbaseSellPrice.amount - (selectedPriceSensitivity.data.value / 100) *
coinbaseSellPrice.amount) * coinbaseAmountBTC | currency : 'USD ' : 2}}
< / span >
< / div >
< / div >
2016-10-12 08:45:11 -07:00
< div class = "item" >
2016-12-12 09:45:12 -08:00
< span class = "label" ng-if = "!(isGlidera || isCoinbase)" translate > To< / span >
< span class = "label" ng-if = "(isGlidera || isCoinbase) == 'buy'" > From< / span >
< span class = "label" ng-if = "(isGlidera || isCoinbase) == 'sell'" > To< / span >
2016-10-14 08:59:31 -07:00
< span class = "payment-proposal-to" >
2016-12-12 09:45:12 -08:00
< img ng-if = "!cardId && !isGiftCard && !isGlidera && !isCoinbase" src = "img/icon-bitcoin-small.svg" >
2016-10-13 10:41:37 -07:00
< img ng-if = "cardId" src = "img/icon-card.svg" width = "34" >
2016-11-29 16:49:56 -08:00
< i ng-if = "isGiftCard" class = "icon big-icon-svg" >
2016-11-28 12:01:07 -08:00
< div class = "bg icon-amazon" > < / div >
< / i >
2016-12-02 09:48:39 -08:00
< img ng-if = "isGlidera" src = "img/glidera-logo.png" width = "90" / >
2016-12-12 09:45:12 -08:00
< img ng-if = "isCoinbase" src = "img/coinbase-logo.png" width = "90" / >
2016-10-14 08:59:31 -07:00
2016-10-26 13:36:31 -07:00
< div copy-to-clipboard = "toAddress" ng-if = "!paypro" class = "ellipsis" >
2016-10-20 08:34:20 -07:00
< contact ng-if = "!toName" address = "{{toAddress}}" > < / contact >
< span class = "m15l size-14" ng-if = "toName" > {{toName}}< / span >
< / div >
2016-10-14 08:59:31 -07:00
2016-10-26 13:36:31 -07: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 08:59:31 -07:00
< span ng-show = "toName" > {{toName}}< / span >
2016-10-06 15:23:39 -07:00
< / div >
2016-10-12 08:45:11 -07: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 06:05:55 -08:00
< a class = "item item-icon-right" ng-hide = "!useSendMax && (insufficientFunds || noMatchingWallet)" ng-click = "showWalletSelector()" >
2016-12-12 09:45:12 -08:00
< span class = "label" ng-if = "!(isGlidera || isCoinbase)" translate > From< / span >
< span class = "label" ng-if = "(isGlidera || isCoinbase) == 'buy'" > To< / span >
< span class = "label" ng-if = "(isGlidera || isCoinbase) == 'sell'" > From< / span >
2016-12-28 07:55:57 -08:00
< div class = "wallet" ng-if = "wallet" >
2016-10-12 08:45:11 -07:00
< 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-12-28 07:55:57 -08:00
< div class = "wallet" ng-if = "!wallet" >
< i class = "icon big-icon-svg" >
< img src = "img/icon-wallet.svg" ng-style = "{'background-color': 'grey'}" class = "bg" / >
< / i >
< div > ...< / div >
< / div >
2016-10-12 09:15:24 -07:00
< i class = "icon bp-arrow-right" > < / i >
< / a >
2016-12-22 15:37:10 -08:00
< a class = "item single-line item-icon-right" ng-if = "!insufficientFunds && !noMatchingWallet && !(isGlidera || isCoinbase == 'buy')" ng-click = "showDescriptionPopup()" >
2016-10-13 06:24:15 -07:00
< span class = "label" translate > Add Memo< / span >
< span class = "item-note m10l" >
2016-10-12 08:45:11 -07:00
{{description}}
< / span >
2016-10-12 09:15:24 -07:00
< i class = "icon bp-arrow-right" > < / i >
< / a >
2016-12-22 15:37:10 -08:00
< div class = "item single-line" ng-if = "!insufficientFunds && !noMatchingWallet && !(isGlidera || isCoinbase == 'buy')" >
2016-12-13 09:52:05 -08:00
< span class = "label" > {{'Fee' | translate}}: {{feeLevel | translate}}< / span >
2016-10-12 08:45:11 -07:00
< span class = "item-note" >
2016-10-13 06:32:44 -07:00
{{fee || '...'}}
2016-10-12 08:45:11 -07:00
< / span >
2016-10-14 08:59:31 -07:00
< / div >
2016-12-05 06:54:54 -08:00
< div class = "item" ng-show = "isGlidera == 'buy'" >
2016-12-02 12:18:48 -08: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 06:54:54 -08:00
< div class = "item" ng-show = "isGlidera == 'sell'" >
2016-12-05 05:27:53 -08:00
< 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-12-19 06:50:49 -08:00
< div class = "size-12 m10" ng-show = "isCoinbase == 'buy'" >
< div >
Subtotal: {{coinbaseBuyRequest.subtotal.amount}} {{coinbaseBuyRequest.subtotal.currency}}
< / div >
< div >
Total: {{coinbaseBuyRequest.total.amount}} {{coinbaseBuyRequest.total.currency}}
< / div >
< div >
Payout at: {{coinbaseBuyRequest.payout_at | amCalendar}}
< / div >
< / div >
2016-11-23 06:23:19 -08:00
< div class = "text-center" ng-show = "noMatchingWallet" >
< span class = "badge badge-energized" translate > No wallets available< / span >
< / div >
2016-11-25 12:05:35 -08:00
< div class = "text-center" ng-show = "insufficientFunds" >
2016-11-23 06:23:19 -08:00
< span class = "badge badge-energized" translate > Insufficient funds< / span >
< / div >
2016-10-12 08:45:11 -07:00
< / div >
< / div >
< / ion-content >
2016-11-16 12:35:25 -08:00
< click-to-accept
2016-12-05 06:17:48 -08:00
ng-click="approve(statusChangeHandler)"
2016-12-28 07:11:55 -08:00
ng-if="!isCordova"
2016-12-02 12:18:48 -08:00
click-send-status="sendStatus"
2016-12-28 07:11:55 -08:00
has-wallet-chosen="wallet"
insufficient-funds="insufficientFunds"
no-matching-wallet="noMatchingWallet">
2017-01-16 11:25:12 -08:00
{{buttonText}}
2016-11-16 12:35:25 -08:00
< / click-to-accept >
2016-10-12 08:45:11 -07:00
< slide-to-accept
2017-01-16 11:25:12 -08:00
ng-if="isCordova & & (wallet & & !insufficientFunds & & !noMatchingWallet)"
2016-12-05 06:17:48 -08:00
slide-on-confirm="onConfirm()"
2016-12-02 12:18:48 -08:00
slide-send-status="sendStatus"
2016-12-28 07:11:55 -08:00
has-wallet-chosen="wallet"
insufficient-funds="insufficientFunds"
no-matching-wallet="noMatchingWallet">
2017-01-16 11:25:12 -08:00
{{buttonText}}
2016-10-12 08:45:11 -07:00
< / slide-to-accept >
< slide-to-accept-success
slide-success-show="sendStatus === 'success'"
slide-success-on-confirm="onSuccessConfirm()"
2016-10-20 11:38:57 -07:00
slide-success-hide-on-confirm="true">
2016-12-19 06:50:49 -08:00
< span ng-show = "isCoinbase == 'buy'" > Bought< / span >
2016-12-22 15:37:10 -08:00
< span ng-show = "isCoinbase == 'sell' && coinbaseSendInfo" > Funds sent to Coinbase Account< / span >
< span ng-show = "isCoinbase == 'sell' && coinbaseSellRequest" > Sale initiated< / span >
2016-12-19 06:50:49 -08:00
< div ng-show = "!isCoinbase" >
< span ng-show = "wallet.m == 1 && (wallet.canSign() || wallet.isPrivKeyExternal())" translate > Payment Sent< / span >
< span ng-show = "wallet.m > 1 && (wallet.canSign() || wallet.isPrivKeyExternal())" translate > Proposal Created< / span >
< span ng-show = "!wallet.canSign() && !wallet.isPrivKeyExternal()" translate > Transaction created< / span >
< / div >
2016-12-02 10:40:36 -08:00
< div ng-show = "isGlidera" class = "glidera-success" >
2016-12-05 10:44:03 -08:00
< span ng-show = "isGlidera == 'buy'" > A transfer has been initiated from your bank account. Your bitcoins should arrive to your wallet in 2-4 business day< / span >
< span ng-show = "isGlidera == 'sell'" > A transfer has been initiated to your bank account. Should arrive in 4-6 business days< / span >
2016-12-02 10:40:36 -08:00
< / div >
2016-12-12 09:45:12 -08:00
< div ng-show = "isCoinbase" class = "glidera-success" >
2016-12-19 06:50:49 -08:00
< span ng-show = "isCoinbase == 'buy'" >
< span ng-show = "coinbaseBuySuccess" >
Bitcoin purchase completed. Coinbase has queued the transfer to your selected Copay wallet
< / span >
< span ng-show = "coinbaseReceiveInfo" >
Buy confirmed. Funds will be send soon to your selected wallet
< / span >
< / span >
2016-12-22 15:37:10 -08:00
< span ng-show = "isCoinbase == 'sell'" >
< span ng-show = "coinbaseSendInfo" >
The transaction is not yet confirmed, and will show as "Processing" in your Activity. The bitcoin sale will be completed automatically once it is confirmed by Coinbase.
< / span >
< span ng-show = "coinbaseSellRequest" >
A transfer has been initiated to your bank account and should arrive at {{coinbaseSellRequest.payout_at | amCalendar}}.
< / span >
< / span >
2016-12-12 09:45:12 -08:00
< / div >
2016-10-12 08:45:11 -07:00
< / slide-to-accept-success >
2016-10-12 17:13:28 -07:00
< wallet-selector
2016-12-02 12:18:48 -08:00
wallet-selector-title="walletSelectorTitle"
2016-10-12 17:13:28 -07:00
wallet-selector-wallets="wallets"
wallet-selector-selected-wallet="wallet"
wallet-selector-show="showWallets"
2016-10-20 11:38:57 -07:00
wallet-selector-on-select="onWalletSelect">
2016-10-12 17:13:28 -07:00
< / wallet-selector >
2016-10-12 08:45:11 -07:00
< / ion-view >