2017-06-28 16:28:17 -03:00
|
|
|
<ion-view id="tab-receive" show-tabs>
|
2016-08-31 18:02:15 -04:00
|
|
|
<ion-nav-bar class="bar-royal">
|
2016-08-30 12:52:28 -03:00
|
|
|
<ion-nav-title>{{'Receive' | translate}}</ion-nav-title>
|
2017-05-23 15:58:25 -03:00
|
|
|
<ion-nav-buttons side="secondary">
|
2017-05-31 16:02:00 -03:00
|
|
|
<button class="button-share ng-hide" ng-show="wallets[0] && showShareButton" ng-click="shareAddress()">
|
2017-06-28 16:28:17 -03:00
|
|
|
<i class="icon"
|
2018-03-14 11:38:03 +09:00
|
|
|
ng-class="{
|
2017-06-28 16:28:17 -03:00
|
|
|
'ion-ios-upload-outline': showShareButton == 'iOS',
|
2017-05-23 15:58:25 -03:00
|
|
|
'ion-android-share-alt': showShareButton != 'iOS'
|
2018-03-14 11:38:03 +09:00
|
|
|
}"></i>
|
2017-05-23 15:58:25 -03:00
|
|
|
</button>
|
|
|
|
|
</ion-nav-buttons>
|
2016-08-17 13:17:23 -03:00
|
|
|
</ion-nav-bar>
|
2016-10-14 22:12:33 -04:00
|
|
|
<ion-content scroll="false">
|
2016-11-11 13:49:51 -05:00
|
|
|
<article class="list card padding text-center" ng-if="!wallets[0]">
|
2016-09-30 12:27:31 -03:00
|
|
|
<span translate>No Wallet</span>
|
2016-11-11 13:49:51 -05:00
|
|
|
</article>
|
2017-05-03 16:25:27 -03:00
|
|
|
<article class="address" ng-if="wallets[0]">
|
|
|
|
|
<div class="address-info" class="text-center" ng-if="wallet && !wallet.isComplete()">
|
2016-09-26 11:26:10 -03:00
|
|
|
<div class="incomplete">
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span translate>Incomplete wallet</span>
|
2016-09-21 17:12:25 -03:00
|
|
|
</div>
|
2016-09-26 11:26:10 -03:00
|
|
|
<div class="subtitle">
|
|
|
|
|
<span translate>All signing devices must be added to this multisig wallet before bitcoin addresses can be created.</span>
|
|
|
|
|
</div>
|
2017-05-03 16:25:27 -03:00
|
|
|
<button class="button button-standard button-primary" ng-click="goCopayers()" translate>Open wallet</button>
|
2016-09-07 09:46:00 -04:00
|
|
|
</div>
|
2016-11-11 13:49:51 -05:00
|
|
|
</div>
|
2017-06-28 16:28:17 -03:00
|
|
|
<div class="address-info" ng-if="wallet && wallet.isComplete()">
|
2018-03-14 11:38:03 +09:00
|
|
|
<div ng-show="!showingPaymentReceived">
|
|
|
|
|
<div>
|
|
|
|
|
<button ng-show="addr" class="button button-standard button-small" ng-click="requestSpecificAmount()">
|
2018-08-23 16:21:15 +12:00
|
|
|
<span translate>Request Specific amount</span>
|
2018-03-14 11:38:03 +09:00
|
|
|
</button><br/><br/>
|
|
|
|
|
</div>
|
|
|
|
|
<div copy-to-clipboard="wallet.coin == 'bch' && bchAddressType.type == 'cashaddr' ? 'bitcoincash:' + addr : addr">
|
|
|
|
|
<span ng-show="shouldShowReceiveAddressFromHardware()">
|
|
|
|
|
<button class="button button-standard button-primary" ng-click="showReceiveAddressFromHardware()">
|
|
|
|
|
<span translate>Show address</span>
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
2018-03-13 17:37:25 +09:00
|
|
|
|
2018-07-03 12:06:44 +02:00
|
|
|
<qrcode class="qr-overlay qr-overlay--{{ wallet.coin }}" ng-if="addr" size="220" data="{{ protocolHandler }}:{{addr}}" color="#334"></qrcode>
|
2018-03-14 11:38:03 +09:00
|
|
|
<div class="address-label">
|
|
|
|
|
<span class="ellipsis">{{addr}}</span>
|
|
|
|
|
<ion-spinner ng-show="!addr" class="spinner-dark" icon="crescent"></ion-spinner>
|
|
|
|
|
</div>
|
2018-06-27 17:11:23 +02:00
|
|
|
</div>
|
|
|
|
|
<div>
|
2018-07-13 14:23:09 +02:00
|
|
|
<button ng-show="addr" class="button-address" ng-click="setAddress(true, true)">
|
2018-06-27 17:11:23 +02:00
|
|
|
<span translate>Generate new address</span>
|
|
|
|
|
</button><br/>
|
2016-11-11 13:49:51 -05:00
|
|
|
</div>
|
2018-02-21 22:29:44 +05:30
|
|
|
</div>
|
2018-03-14 11:38:03 +09:00
|
|
|
<!-- animation for payment received -->
|
2018-05-22 11:27:10 +09:00
|
|
|
<div class="payment-received-container" ng-show="showingPaymentReceived" ng-click="hidePaymentScreen()">
|
2018-03-12 14:12:24 +09:00
|
|
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130.2 130.2">
|
|
|
|
|
<circle class="path circle" fill="none" stroke="#19B234" stroke-width="6" stroke-miterlimit="10" cx="65.1" cy="65.1" r="62.1"/>
|
|
|
|
|
<polyline class="path check" fill="none" stroke="#19B234" stroke-width="6" stroke-linecap="round" stroke-miterlimit="10" points="100.2,40.2 51.5,88.8 29.8,67.5 "/>
|
|
|
|
|
</svg>
|
2018-03-13 17:37:25 +09:00
|
|
|
<p class="success animated fadeIn">
|
2018-03-29 14:14:43 +09:00
|
|
|
<br/>Payment Received!
|
2018-08-07 16:21:51 +02:00
|
|
|
<span ng-if="!(displayBalanceAsFiat && paymentReceivedAlternativeAmount)" class="payment-received-amount"><formatted-amount value="{{ paymentReceivedAmount }}" currency="{{paymentReceivedCoin}}"></formatted-amount></span>
|
|
|
|
|
<span ng-if="displayBalanceAsFiat && paymentReceivedAlternativeAmount" class="payment-received-amount"><formatted-amount value="{{ paymentReceivedAlternativeAmount }}"></formatted-amount></span></span>
|
2018-03-29 14:14:43 +09:00
|
|
|
Return To Address<br/>
|
2018-03-13 17:37:25 +09:00
|
|
|
</p>
|
2018-03-12 14:12:24 +09:00
|
|
|
</div>
|
|
|
|
|
<!-- end of animation -->
|
2018-03-13 17:37:25 +09:00
|
|
|
<div ng-show="addr && wallet.coin == 'bch' && !showingPaymentReceived">
|
2018-02-21 22:29:44 +05:30
|
|
|
<label class="item-input item-select">
|
2018-08-23 16:21:15 +12:00
|
|
|
<div class="input-label">
|
|
|
|
|
<span translate>Address Type</span>:
|
2018-02-21 22:29:44 +05:30
|
|
|
</div>
|
|
|
|
|
<select ng-model="bchAddressType.type" ng-change="displayAddress(bchAddressType.type)">
|
|
|
|
|
<option value="cashaddr">Cash Address</option>
|
|
|
|
|
<option value="legacy">Legacy</option>
|
|
|
|
|
<option value="bitpay">BitPay</option>
|
|
|
|
|
</select>
|
|
|
|
|
</label>
|
2017-05-24 12:51:58 -03:00
|
|
|
</div>
|
2017-06-28 16:28:17 -03:00
|
|
|
</div>
|
2016-09-07 09:46:00 -04:00
|
|
|
</article>
|
2017-05-08 16:43:49 -03:00
|
|
|
|
|
|
|
|
<div class="backup" ng-if="wallets[0] && wallet && wallet.isComplete() && wallet.needsBackup" ng-click="openBackupNeededModal()">
|
2017-05-08 17:09:55 -03:00
|
|
|
<i class="icon ion-alert"></i>
|
|
|
|
|
<span translate>Wallet not backed up</span>
|
|
|
|
|
<i class="icon ion-ios-arrow-thin-right"></i>
|
2017-05-08 16:43:49 -03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="wallet-selector" ng-click="showWalletSelector()" ng-if="wallets[0] && wallet">
|
2017-05-03 16:25:27 -03:00
|
|
|
<a ng-if="wallet" class="item item-sub item-icon-left item-big-icon-left item-icon-right">
|
2017-09-20 11:53:30 -03:00
|
|
|
<i class="icon big-icon-svg" ng-include="'views/includes/walletIcon.html'"></i>
|
2017-05-03 16:25:27 -03:00
|
|
|
<span>
|
|
|
|
|
{{wallet.name || wallet.id}}
|
|
|
|
|
</span>
|
|
|
|
|
<p>
|
2018-08-07 16:21:51 +02:00
|
|
|
<span ng-if="displayBalanceAsFiat && !wallet.balanceHidden" translate> <formatted-amount value="{{wallet.status.totalBalanceAlternative}}" currency="{{wallet.status.alternativeIsoCode}}"></formatted-amount></span>
|
|
|
|
|
<span ng-if="!displayBalanceAsFiat && !wallet.balanceHidden"> <formatted-amount value="{{wallet.status.totalBalanceStr}}"></formatted-amount> </span>
|
2017-05-03 16:25:27 -03:00
|
|
|
|
2018-03-14 11:38:03 +09:00
|
|
|
<span ng-if="wallet.balanceHidden" translate>[Balance Hidden]</span>
|
|
|
|
|
<span class="tab-home__wallet__multisig-number" ng-if="wallet.n > 1">
|
|
|
|
|
{{wallet.m}}-of-{{wallet.n}}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="assertive" ng-if="wallet.error">{{wallet.error}}</span>
|
|
|
|
|
|
2017-05-03 16:25:27 -03:00
|
|
|
</p>
|
|
|
|
|
<i ng-if="!singleWallet" class="icon bp-arrow-right"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2017-06-28 16:28:17 -03:00
|
|
|
|
2016-08-11 17:38:27 -03:00
|
|
|
</ion-content>
|
2017-05-03 16:25:27 -03:00
|
|
|
<wallet-selector
|
2018-03-14 11:38:03 +09:00
|
|
|
wallet-selector-title="walletSelectorTitle"
|
|
|
|
|
wallet-selector-wallets="wallets"
|
|
|
|
|
wallet-selector-selected-wallet="wallet"
|
|
|
|
|
wallet-selector-show="showWallets"
|
2018-05-24 14:36:51 -07:00
|
|
|
wallet-selector-on-select="onWalletSelect"
|
|
|
|
|
wallet-selector-display-balance-as-fiat="displayBalanceAsFiat">
|
2018-03-14 11:38:03 +09:00
|
|
|
</wallet-selector>
|
2016-08-12 16:04:17 -03:00
|
|
|
</ion-view>
|