copay/www/views/tab-receive.html

78 lines
3.5 KiB
HTML
Raw Normal View History

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">
<ion-nav-title>{{'Receive' | translate}}</ion-nav-title>
2016-08-17 09:17:23 -07:00
</ion-nav-bar>
<ion-content scroll="false">
2016-11-11 10:49:51 -08:00
<article class="list card padding text-center" ng-if="!wallets[0]">
<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>
</div>
2016-11-11 10:49:51 -08:00
</div>
2017-05-03 12:25:27 -07:00
<div class="address-info" ng-if="wallet && wallet.isComplete()">
<div class="row backup" ng-show="wallet.needsBackup" ng-click="openBackupNeededModal()">
<div class="text-center col center-block">
2016-09-26 09:05:15 -07:00
<i class="icon ion-alert"></i><span translate>Wallet not backed up</span><i class="icon ion-ios-arrow-thin-right"></i>
</div>
</div>
<div class="row qr">
2017-05-03 12:25:27 -07:00
<div class="text-center col">
<div copy-to-clipboard="copyToClipboard()">
<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-03 12:25:27 -07:00
<div ng-show="addr" class="request-button">
<button class="button button-standard button-primary button-outline" ng-click="requestSpecificAmount()" translate>Request Specific amount</button>
</div>
2016-11-11 10:49:51 -08:00
</div>
</div>
</div>
</article>
2017-05-08 06:35:12 -07:00
<div ng-click="showWalletSelector()" ng-if="wallets[0]">
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>
&nbsp;
</p>
<i ng-if="!singleWallet" class="icon bp-arrow-right"></i>
</a>
</div>
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>