2016-09-21 13:12:25 -07:00
|
|
|
<ion-view id="tab-receive">
|
2016-08-31 15:02:15 -07:00
|
|
|
<ion-nav-bar class="bar-royal">
|
2016-08-30 08:52:28 -07:00
|
|
|
<ion-nav-title>{{'Receive' | translate}}</ion-nav-title>
|
2017-05-23 11:58:25 -07:00
|
|
|
<ion-nav-buttons side="secondary">
|
2017-05-31 12:02:00 -07:00
|
|
|
<button class="button-share ng-hide" ng-show="wallets[0] && showShareButton" ng-click="shareAddress()">
|
2017-05-23 11:58:25 -07:00
|
|
|
<i class="icon"
|
|
|
|
ng-class="{
|
|
|
|
'ion-ios-upload-outline': showShareButton == 'iOS',
|
|
|
|
'ion-android-share-alt': showShareButton != 'iOS'
|
|
|
|
}"></i>
|
|
|
|
</button>
|
|
|
|
</ion-nav-buttons>
|
2016-08-17 09:17:23 -07:00
|
|
|
</ion-nav-bar>
|
2016-10-14 19:12:33 -07:00
|
|
|
<ion-content scroll="false">
|
2016-11-11 10:49:51 -08:00
|
|
|
<article class="list card padding text-center" ng-if="!wallets[0]">
|
2016-09-30 08:27:31 -07:00
|
|
|
<span translate>No Wallet</span>
|
2016-11-11 10:49:51 -08:00
|
|
|
</article>
|
2017-05-03 12:25:27 -07:00
|
|
|
<article class="address" ng-if="wallets[0]">
|
|
|
|
<div class="address-info" class="text-center" ng-if="wallet && !wallet.isComplete()">
|
2016-09-26 07:26:10 -07:00
|
|
|
<div class="incomplete">
|
|
|
|
<div class="title">
|
|
|
|
<span translate>Incomplete wallet</span>
|
2016-09-21 13:12:25 -07:00
|
|
|
</div>
|
2016-09-26 07:26:10 -07: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 12:25:27 -07:00
|
|
|
<button class="button button-standard button-primary" ng-click="goCopayers()" translate>Open wallet</button>
|
2016-09-07 06:46:00 -07:00
|
|
|
</div>
|
2016-11-11 10:49:51 -08:00
|
|
|
</div>
|
2017-05-08 12:43:49 -07:00
|
|
|
<div class="address-info" ng-if="wallet && wallet.isComplete()">
|
2017-05-23 11:58:25 -07:00
|
|
|
<div copy-to-clipboard="addr">
|
2017-05-08 13:09:55 -07:00
|
|
|
<span ng-show="shouldShowReceiveAddressFromHardware()">
|
|
|
|
<button class="button button-standard button-primary" ng-click="showReceiveAddressFromHardware()">
|
|
|
|
<span translate>Show address</span>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
<qrcode ng-if="addr" size="220" data="bitcoin:{{addr}}" color="#334"></qrcode>
|
|
|
|
<div class="address-label">
|
|
|
|
<span class="ellipsis">{{addr}}</span>
|
|
|
|
<ion-spinner ng-show="!addr" class="spinner-dark" icon="crescent"></ion-spinner>
|
2016-11-11 10:49:51 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-05-24 08:51:58 -07:00
|
|
|
<div>
|
|
|
|
<button ng-show="addr" class="button-request" ng-click="requestSpecificAmount()">
|
|
|
|
<span translate>Request Specific amount</span>
|
|
|
|
<i class="icon ion-ios-arrow-right"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button ng-show="addr" class="button-address" ng-click="setAddress(true)">
|
|
|
|
<span translate>Generate new address</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2017-05-08 12:43:49 -07:00
|
|
|
</div>
|
2016-09-07 06:46:00 -07:00
|
|
|
</article>
|
2017-05-08 12:43:49 -07:00
|
|
|
|
|
|
|
<div class="backup" ng-if="wallets[0] && wallet && wallet.isComplete() && wallet.needsBackup" ng-click="openBackupNeededModal()">
|
2017-05-08 13:09:55 -07: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 12:43:49 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="wallet-selector" ng-click="showWalletSelector()" ng-if="wallets[0] && wallet">
|
2017-05-03 12:25:27 -07:00
|
|
|
<a ng-if="wallet" class="item item-sub item-icon-left item-big-icon-left item-icon-right">
|
|
|
|
<i class="icon big-icon-svg">
|
|
|
|
<img src="img/icon-wallet.svg" ng-class="{'wallet-background-color-default': !wallet.color}" ng-style="{'background-color': wallet.color}" class="bg wallet"/>
|
|
|
|
</i>
|
|
|
|
<span>
|
|
|
|
{{wallet.name || wallet.id}}
|
|
|
|
</span>
|
|
|
|
<p>
|
|
|
|
<span ng-if="!wallet.balanceHidden"> {{wallet.status.totalBalanceStr}} </span>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<i ng-if="!singleWallet" class="icon bp-arrow-right"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-05-08 12:43:49 -07:00
|
|
|
|
2016-08-11 13:38:27 -07:00
|
|
|
</ion-content>
|
2017-05-03 12:25:27 -07:00
|
|
|
<wallet-selector
|
|
|
|
wallet-selector-title="walletSelectorTitle"
|
|
|
|
wallet-selector-wallets="wallets"
|
|
|
|
wallet-selector-selected-wallet="wallet"
|
|
|
|
wallet-selector-show="showWallets"
|
|
|
|
wallet-selector-on-select="onWalletSelect">
|
|
|
|
</wallet-selector>
|
2016-08-12 12:04:17 -07:00
|
|
|
</ion-view>
|