2017-04-05 10:39:00 -03:00
|
|
|
<ion-view id="walletDetails" hide-tabs>
|
2016-11-10 14:26:22 -05:00
|
|
|
|
2017-02-23 16:46:41 -05:00
|
|
|
<ion-nav-bar ng-class="{'wallet-background-color-default': !wallet.color}" ng-style="{'background-color': wallet.color}">
|
2016-09-29 19:04:52 -03:00
|
|
|
<ion-nav-title>{{wallet.name}}</ion-nav-title>
|
2016-09-16 12:19:40 -03:00
|
|
|
<ion-nav-back-button>
|
|
|
|
|
</ion-nav-back-button>
|
2016-09-16 11:30:16 -03:00
|
|
|
<ion-nav-buttons side="secondary">
|
2016-10-18 21:10:09 -04:00
|
|
|
<button class="button back-button" ng-click="startSearch(); openSearchModal()" ng-if="txHistory.length > 4">
|
|
|
|
|
<i class="icon ion-ios-search-strong tx-search"></i>
|
2016-09-16 11:30:16 -03:00
|
|
|
</button>
|
2018-10-02 15:48:50 +02:00
|
|
|
<button class="button" ng-click="vm.openWalletSettings();">
|
2018-09-13 14:49:06 +02:00
|
|
|
<i class="icon ion-android-settings"></i>
|
|
|
|
|
</button>
|
2016-09-16 11:30:16 -03:00
|
|
|
</ion-nav-buttons>
|
|
|
|
|
</ion-nav-bar>
|
2018-08-09 17:14:05 +02:00
|
|
|
<style type="text/css">
|
|
|
|
|
.button-white-outline.button-outline.active, .button-white-outline.button-outline.activated {
|
|
|
|
|
color: {{ wallet.color }};
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2016-10-03 11:52:48 -03:00
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<div class="bp-content" ng-class="{'status-bar': isCordova, 'collapse': scrollPosition > 50}">
|
2016-11-09 12:34:38 -05:00
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<div class="amount-wrapper" ng-show="wallet && wallet.isComplete()" ng-class="{'wallet-background-color-default': !wallet.color}" ng-style="{'background-color':wallet.color}">
|
2017-08-30 14:52:30 -03:00
|
|
|
|
2016-11-14 18:26:45 -05:00
|
|
|
<div
|
2018-09-05 16:19:31 +02:00
|
|
|
ng-style="{'background-color':wallet.color}"
|
|
|
|
|
class="amount collapsible"
|
|
|
|
|
ng-class="{'wallet-background-color-default': !wallet.color, 'no-alternative': wallet.network != 'livenet'}"
|
2016-11-14 18:26:45 -05:00
|
|
|
>
|
2016-11-09 12:34:38 -05:00
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<div class="amount__error" ng-show="updateStatusError">
|
2017-08-30 14:52:30 -03:00
|
|
|
<span>{{updateStatusError}}</span>
|
|
|
|
|
</div>
|
2016-11-09 12:34:38 -05:00
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<div class="amount__error" ng-show="walletNotRegistered">
|
2017-08-30 14:52:30 -03:00
|
|
|
<span translate>This wallet is not registered at the given Bitcore Wallet Service (BWS). You can recreate it from the local information.</span>
|
|
|
|
|
</div>
|
2016-11-09 12:34:38 -05:00
|
|
|
|
2017-08-30 14:52:30 -03:00
|
|
|
<div
|
2018-09-05 16:19:31 +02:00
|
|
|
ng-if="selectedPriceDisplay=='fiat' && !updateStatusError && !wallet.balanceHidden && !wallet.scanning"
|
2018-04-25 13:59:25 +09:00
|
|
|
on-hold="hideToggle()"
|
2018-09-05 16:19:31 +02:00
|
|
|
class="amount__balance amount__scale">
|
2018-08-08 13:38:43 +12:00
|
|
|
<strong class="size-36" ng-show="status.totalBalanceAlternative">
|
|
|
|
|
<formatted-amount value="{{status.totalBalanceAlternative}}" currency="{{status.alternativeIsoCode}}"></formatted-amount>
|
|
|
|
|
</strong>
|
2018-04-25 13:59:25 +09:00
|
|
|
<div
|
|
|
|
|
class="size-14 amount-alternative"
|
2018-09-05 16:19:31 +02:00
|
|
|
ng-if="status.totalBalanceStr && wallet.network == 'livenet'">
|
2018-08-10 19:45:43 +12:00
|
|
|
<formatted-amount value="{{status.totalBalanceStr}}" size-equal="true"></formatted-amount>
|
2018-04-25 13:59:25 +09:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
2017-08-30 14:52:30 -03:00
|
|
|
on-hold="hideToggle()"
|
2018-09-05 16:19:31 +02:00
|
|
|
ng-if="status.totalBalanceStr && selectedPriceDisplay=='crypto' && !updateStatusError && !wallet.balanceHidden && !wallet.scanning"
|
|
|
|
|
class="amount__balance amount__scale">
|
2018-08-08 13:38:43 +12:00
|
|
|
<strong class="size-36">
|
|
|
|
|
<formatted-amount value="{{status.totalBalanceStr}}"></formatted-amount>
|
|
|
|
|
</strong>
|
2016-11-09 13:15:42 -05:00
|
|
|
<div
|
2017-08-30 14:52:30 -03:00
|
|
|
class="size-14 amount-alternative"
|
2018-09-05 16:19:31 +02:00
|
|
|
ng-if="status.totalBalanceAlternative && wallet.network == 'livenet'">
|
2018-08-07 16:11:47 +02:00
|
|
|
<formatted-amount value="{{status.totalBalanceAlternative}}" currency="{{status.alternativeIsoCode}}"></formatted-amount>
|
2016-11-09 12:34:38 -05:00
|
|
|
</div>
|
2017-08-30 14:52:30 -03:00
|
|
|
</div>
|
2016-12-13 12:30:28 -05:00
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<div
|
|
|
|
|
class="amount__balance amount__scale"
|
|
|
|
|
ng-if="!updateStatusError && wallet.balanceHidden && !wallet.scanning"
|
2017-08-30 14:52:30 -03:00
|
|
|
on-hold="hideToggle()">
|
|
|
|
|
<strong class="size-24" translate>[Balance Hidden]</strong>
|
2018-09-05 16:19:31 +02:00
|
|
|
<div class="size-14 amount-alternative" translate>
|
2017-08-30 14:52:30 -03:00
|
|
|
Tap and hold to show
|
2016-12-09 16:42:11 -05:00
|
|
|
</div>
|
2016-11-09 12:34:38 -05:00
|
|
|
</div>
|
2017-08-30 14:52:30 -03:00
|
|
|
|
2017-09-14 22:09:20 -03:00
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<div
|
|
|
|
|
class="amount__balance amount__scale"
|
|
|
|
|
ng-if="!updateStatusError && wallet.scanning">
|
2017-09-14 22:09:20 -03:00
|
|
|
<strong class="size-24" translate>[Scanning Funds]</strong>
|
2018-09-05 16:19:31 +02:00
|
|
|
<div class="size-14 amount-alternative" translate>
|
2017-09-14 22:09:20 -03:00
|
|
|
Please wait
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<div ng-if="!wallet.balanceHidden && !wallet.scanning && showBalanceButton" class="amount__scale">
|
2017-08-30 14:52:30 -03:00
|
|
|
<button class="button button-standard button-primary amount__button-balance size-14" ng-click="openBalanceModal()">
|
|
|
|
|
<i class="icon ion-ios-checkmark-outline"></i>
|
|
|
|
|
<strong>
|
|
|
|
|
{{status.spendableBalanceStr}}
|
|
|
|
|
</strong>
|
|
|
|
|
|
|
|
|
|
<span>
|
2018-08-07 16:11:47 +02:00
|
|
|
<formatted-amount value="{{status.spendableBalanceAlternative}}" currency="{{status.alternativeIsoCode}}"></formatted-amount>
|
2017-08-30 14:52:30 -03:00
|
|
|
</span>
|
|
|
|
|
</button>
|
2016-11-09 12:34:38 -05:00
|
|
|
</div>
|
2018-07-26 19:38:29 +02:00
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<div class="send-receive-buttons row" ng-if="(status.availableBalanceSat || status.availableBalanceSat === 0)">
|
2018-07-18 16:30:54 +02:00
|
|
|
<div class="col">
|
2018-07-26 15:04:42 +02:00
|
|
|
<div class="button button-outline button-white-outline" ng-click="goToReceive()">
|
2018-07-18 16:30:54 +02:00
|
|
|
<span translate>Receive</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col">
|
2018-07-26 19:38:29 +02:00
|
|
|
<div class="button button-outline button-white-outline" ng-if="!status.availableBalanceSat" ng-click="goToBuy()">
|
2018-07-18 16:30:54 +02:00
|
|
|
<span translate>Buy Bitcoin</span>
|
|
|
|
|
</div>
|
2018-07-26 19:38:29 +02:00
|
|
|
<div class="button button-outline button-white-outline" ng-if="status.availableBalanceSat>0" ng-click="goToSend()">
|
2018-07-18 16:30:54 +02:00
|
|
|
<span translate>Send</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-07-26 19:38:29 +02:00
|
|
|
|
2016-11-14 18:26:45 -05:00
|
|
|
</div>
|
2018-09-05 16:19:31 +02:00
|
|
|
<div class="wallet-details-wallet-info">
|
2016-11-09 12:34:38 -05:00
|
|
|
<span ng-include="'views/includes/walletInfo.html'"></span>
|
|
|
|
|
</div>
|
2016-11-14 18:26:45 -05:00
|
|
|
</div>
|
|
|
|
|
|
2018-09-05 16:19:31 +02:00
|
|
|
<ion-content class="amount__balance">
|
2016-10-10 15:19:33 -03:00
|
|
|
<ion-refresher
|
|
|
|
|
pulling-icon="ion-ios-refresh"
|
|
|
|
|
spinner="ios-small"
|
|
|
|
|
on-refresh="onRefresh()">
|
|
|
|
|
</ion-refresher>
|
2016-08-15 16:07:30 -03:00
|
|
|
|
2016-12-13 12:49:23 -05:00
|
|
|
<a class="wallet-not-backed-up-warning" ng-if="wallet.needsBackup" ui-sref="tabs.wallet.backupWarning({from: 'tabs.wallet'})" translate>
|
2016-11-07 17:22:51 -05:00
|
|
|
Wallet not backed up
|
|
|
|
|
</a>
|
2016-08-15 16:07:30 -03:00
|
|
|
|
2017-06-28 15:25:58 -03:00
|
|
|
<a class="wallet-not-backed-up-warning" ng-if="lowUtxosWarning" ui-sref="tabs.wallet.addresses({walletId:wallet.id,from: 'tabs.wallet'})" translate>
|
2017-06-22 13:44:49 -03:00
|
|
|
Spending this balance will need significant Bitcoin network fees
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
2017-08-30 14:52:30 -03:00
|
|
|
<div ng-if="wallet && wallet.isComplete() && !walletNotRegistered">
|
|
|
|
|
<div class="wallet-details__incorrect-derivation" ng-show="wallet.incorrectDerivation">
|
2016-08-15 16:07:30 -03:00
|
|
|
<div class="text-center text-warning">
|
|
|
|
|
<i class="fi-alert"></i>
|
|
|
|
|
<span translate>
|
|
|
|
|
WARNING: Key derivation is not working on this device/wallet. Actions cannot be performed on this wallet.
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-06-23 09:56:59 -03:00
|
|
|
<div ng-if="txps[0]">
|
|
|
|
|
<div class="wallet-details__group-label">
|
2016-11-03 17:38:46 -04:00
|
|
|
<span ng-show="requiresMultipleSignatures" translate>Proposals</span>
|
|
|
|
|
<span ng-show="!requiresMultipleSignatures" translate>Unsent transactions</span>
|
2016-10-03 11:52:48 -03:00
|
|
|
</div>
|
2016-11-03 17:29:29 -04:00
|
|
|
<div ng-repeat="tx in txps" ng-click="openTxpModal(tx)">
|
2016-11-15 11:42:34 -05:00
|
|
|
<a class="wallet-details__item proposal item" ng-include="'views/includes/txp.html'"></a>
|
2016-10-03 11:52:48 -03:00
|
|
|
</div>
|
2016-11-07 15:32:28 -05:00
|
|
|
<div class="item item-footer description" ng-show="status.lockedBalanceSat" style="background: white;">
|
2016-10-03 11:52:48 -03:00
|
|
|
<span translate>Total Locked Balance</span>:
|
|
|
|
|
<b>{{status.lockedBalanceStr}} </b>
|
2018-07-30 15:25:52 +02:00
|
|
|
<span> {{status.lockedBalanceAlternative}} {{status.alternativeIsoCode}} </span>
|
2016-10-03 11:52:48 -03:00
|
|
|
</div>
|
2016-08-23 17:31:50 -03:00
|
|
|
</div>
|
|
|
|
|
|
2016-08-18 10:37:08 -03:00
|
|
|
<!-- Transactions -->
|
2016-08-15 10:25:43 -03:00
|
|
|
|
2017-08-30 14:52:30 -03:00
|
|
|
<div class="wallet-details__no-transaction"
|
2018-08-20 17:21:30 +12:00
|
|
|
ng-show="!txHistory[0] && !vm.gettingInitialHistory && !vm.updateTxHistoryFailed && !updateStatusError" translate>
|
2016-09-29 19:04:52 -03:00
|
|
|
No transactions yet
|
2016-08-15 16:07:30 -03:00
|
|
|
</div>
|
|
|
|
|
|
2017-01-17 11:41:39 -03:00
|
|
|
|
2017-08-30 14:52:30 -03:00
|
|
|
<div class="wallet-details__no-update-history"
|
2018-08-20 17:21:30 +12:00
|
|
|
ng-show="!txHistory[0] && !vm.gettingInitialHistory && vm.updateTxHistoryFailed" translate>
|
2017-01-17 11:41:39 -03:00
|
|
|
Could not update transaction history
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
2018-08-16 15:44:59 +12:00
|
|
|
<div ng-show="vm.gettingInitialHistory && updatingTxHistoryProgress>5" class="wallet-details__updating-history">
|
2017-08-30 14:52:30 -03:00
|
|
|
<span translate>Updating transaction history. Please stand by.</span><br>
|
|
|
|
|
<span translate>{{updatingTxHistoryProgress}} transactions downloaded</span>
|
2016-08-18 17:56:04 -03:00
|
|
|
</div>
|
2016-08-15 10:25:43 -03:00
|
|
|
|
2018-09-04 16:36:05 +02:00
|
|
|
<div ng-style="{'padding-bottom': txHistoryPaddingBottom}" class="wallet-details__list" ng-show="txHistory[0] && !updatingTxHistory">
|
2016-11-01 17:32:18 -04:00
|
|
|
<div ng-repeat="btx in txHistory track by $index" ng-click="openTxModal(btx)">
|
2017-05-30 16:19:06 -03:00
|
|
|
<span ng-include="'views/includes/walletHistory.html'"></span>
|
2016-08-18 20:54:08 -03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-10-03 11:52:48 -03:00
|
|
|
<ion-infinite-scroll
|
2018-08-21 09:17:56 +12:00
|
|
|
ng-if="txHistory[0] && vm.allowInfiniteScroll"
|
2016-10-03 11:52:48 -03:00
|
|
|
on-infinite="showMore()"
|
|
|
|
|
distance="1%">
|
|
|
|
|
</ion-infinite-scroll>
|
2016-11-14 17:19:10 -03:00
|
|
|
</div>
|
2016-08-15 16:07:30 -03:00
|
|
|
</ion-content>
|
2016-11-10 14:26:22 -05:00
|
|
|
</div>
|
2016-08-15 16:07:30 -03:00
|
|
|
</ion-view>
|