2016-09-22 10:34:00 -03:00
< ion-view id = "walletDetails" >
2016-09-29 19:04:52 -03:00
< ion-nav-bar ng-style = "{'background-color': wallet.color}" >
< 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 >
< / ion-nav-buttons >
< / ion-nav-bar >
2016-10-03 11:52:48 -03:00
2016-10-11 13:17:32 -03:00
< ion-content has-bouncing = "false" >
2016-10-10 15:19:33 -03:00
< ion-refresher
2016-10-14 10:24:20 -03:00
ng-if="isAndroid"
2016-10-10 15:19:33 -03:00
pulling-icon="ion-ios-refresh"
spinner="ios-small"
on-refresh="onRefresh()">
< / ion-refresher >
2016-09-06 11:22:10 -03:00
< div class = "oh pr" ng-show = "wallet && wallet.isComplete()" >
2016-08-15 16:07:30 -03:00
< div ng-style = "{'background-color':wallet.color}" class = "amount" >
2016-11-14 17:19:10 -03:00
< div ng-if = "!updatingStatus" >
2016-08-15 16:07:30 -03:00
2016-09-29 19:04:52 -03:00
< div ng-show = "updateStatusError" >
2016-11-14 17:31:36 -03:00
< span class = "size-12 db m10b" > {{updateStatusError}}< / span >
2016-11-14 12:53:43 -03:00
< a class = "button button-outline button-light button-small" ng-click = 'updateAll()' translate > Tap to retry< / a >
2016-08-15 10:25:43 -03:00
< / div >
2016-08-15 16:07:30 -03:00
2016-09-29 19:04:52 -03:00
< div ng-show = "walletNotRegistered" >
2016-09-08 12:13:37 -03:00
< span class = "size-12 db m10b" translate > This wallet is not registered at the given Bitcore Wallet Service (BWS). You can recreate it from the local information.< / span >
2016-09-29 19:04:52 -03:00
< a class = "button button-outline button-light button-small" ng-click = 'recreate()' translate > Recreate< / a >
2016-09-08 12:13:37 -03:00
< / div >
2016-11-14 17:19:10 -03:00
< div ng-click = 'updateAll(true)' ng-show = "!updateStatusError && !wallet.balanceHidden" on-hold = "hideToggle()" >
2016-10-28 11:45:23 -04:00
< strong ng-if = "!status.pendingAmount" class = "size-36" > {{status.totalBalanceStr}}< / strong >
< div ng-if = "!status.pendingAmount" class = "size-14 amount-alternative" ng-if = "status.totalBalanceAlternative" > {{status.totalBalanceAlternative}} {{status.alternativeIsoCode}}< / div >
< div class = "size-20" ng-if = "status.pendingAmount" >
< div style = "margin-bottom:.5rem" > < span translate > Available< / span > : {{status.totalBalanceStr}}< / div >
< div > < span translate > Confirming< / span > : {{status.pendingAmountStr}}< / div >
2016-08-15 10:25:43 -03:00
< / div >
2016-08-15 16:07:30 -03:00
< / div >
2016-11-14 17:19:10 -03:00
< div ng-show = "!updateStatusError && wallet.balanceHidden" on-hold = "hideToggle()" >
2016-08-15 16:07:30 -03:00
< strong class = "size-24" translate > [Balance Hidden]< / strong >
< div class = "size-14" translate >
Tap and hold to show
2016-08-15 10:25:43 -03:00
< / div >
2016-08-15 16:07:30 -03:00
< / div >
< / div >
2016-08-18 10:37:08 -03:00
< div ng-if = "updatingStatus" >
2016-09-29 19:04:52 -03:00
< div class = "size-36" >
< strong > ...< / strong >
2016-08-15 10:25:43 -03:00
< / div >
2016-09-29 19:04:52 -03:00
< / div >
2016-08-15 16:07:30 -03:00
< / div > <!-- amount -->
2016-08-15 10:25:43 -03:00
2016-10-03 16:32:45 -04:00
< div class = "wallet-details-wallet-info" >
2016-08-15 16:07:30 -03:00
< span ng-include = "'views/includes/walletInfo.html'" > < / span >
< / div >
< / div > <!-- oh -->
2016-11-14 17:19:10 -03:00
< div class = "p60b" ng-show = "wallet && wallet.isComplete() && !walletNotRegistered" >
2016-08-15 16:07:30 -03:00
< div class = "oh pr m20t" ng-show = "wallet.incorrectDerivation" >
< 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 >
2016-10-18 18:35:03 -04:00
< div class = "list" ng-if = "txps[0]" >
2016-10-03 11:52:48 -03:00
< div class = "item item-heading" translate >
< span ng-show = "requiresMultipleSignatures" translate > Payment Proposals< / span >
< span ng-show = "!requiresMultipleSignatures" translate > Unsent transactions< / span >
< / div >
< div ng-repeat = "tx in txps" class = "item item-icon-left" ng-click = "openTxpModal(tx)" >
< span ng-include = "'views/includes/txp.html'" > < / span >
< / div >
2016-10-27 10:28:46 -03:00
< div class = "item item-footer description" ng-show = "status.lockedBalanceSat" >
2016-10-03 11:52:48 -03:00
< span translate > Total Locked Balance< / span > :
< b > {{status.lockedBalanceStr}} < / b >
< span > {{status.lockedBalanceAlternative}} {{status.alternativeIsoCode}} < / span >
< / 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
2016-08-15 16:07:30 -03:00
< div class = "oh pr m20t text-gray size-12 text-center"
2016-11-14 17:19:10 -03:00
ng-show="!txHistory[0] & & !updatingTxHistory & & !txHistoryError & & !updateStatusError" translate>
2016-09-29 19:04:52 -03:00
No transactions yet
2016-08-15 16:07:30 -03:00
< / div >
2016-09-30 15:58:56 -03:00
< div ng-show = "updatingTxHistory && updatingTxHistoryProgress>5" class = "updatingHistory" >
2016-08-23 12:10:48 -03:00
< div class = "row" >
2016-08-18 17:56:04 -03:00
< ion-spinner class = "spinner-dark" icon = "lines" > < / ion-spinner >
2016-08-23 12:10:48 -03:00
< / div >
< div class = "row" >
< div class = "col" translate > Updating transaction history. Please stand by.< / div >
< / div >
< div class = "row" ng-show = "updatingTxHistoryProgress>0" >
< div class = "col" translate > {{updatingTxHistoryProgress}} transactions downloaded< / div >
2016-08-15 16:07:30 -03:00
< / div >
2016-08-18 17:56:04 -03:00
< / div >
2016-08-15 10:25:43 -03:00
2016-10-18 18:35:03 -04:00
< div class = "list" ng-show = "txHistory[0]" >
2016-10-11 16:46:06 -03:00
< div class = "item" ng-repeat = "btx in txHistory track by $index" ng-click = "openTxModal(btx)" >
2016-09-07 13:34:47 -03:00
< span class = "item-note text-right" >
2016-10-18 21:10:17 -04:00
< span class = "wallet-details__tx-amount" ng-class = "{'wallet-details__tx-amount--recent': btx.recent, 'wallet-details__tx-amount--received': btx.action == 'received', 'wallet-details__tx-amount--sent': btx.action == 'sent'}" >
< span ng-if = "btx.action == 'sent'" > – < / span >
2016-09-07 13:34:47 -03:00
< span class = "size-12" ng-if = "btx.action == 'invalid'" translate >
(possible double spend)
< / span >
< span ng-if = "btx.action != 'invalid'" >
{{btx.amountStr}}
< / span >
< / span >
< p >
2016-10-18 21:10:17 -04:00
< time class = "wallet-details__tx-time" ng-if = "btx.time" > {{btx.time * 1000 | amTimeAgo}}< / time >
2016-09-07 13:34:47 -03:00
< span translate class = "text-warning"
ng-show="!btx.time & & (!btx.confirmations || btx.confirmations == 0)">
Unconfirmed
< / span >
< / p >
< / span >
2016-10-27 17:48:30 -04:00
< img class = "wallet-details__tx-icon" src = "img/icon-tx-received.svg" width = "40" ng-if = "btx.action == 'received'" >
< img class = "wallet-details__tx-icon" src = "img/icon-tx-sent.svg" width = "40" ng-if = "btx.action == 'sent'" >
< img class = "wallet-details__tx-icon" src = "img/icon-tx-moved.svg" width = "40" ng-if = "btx.action == 'moved'" >
2016-08-18 20:54:08 -03:00
2016-10-18 21:10:17 -04:00
< div class = "wallet-details__tx-title" >
2016-10-21 11:58:33 -03:00
< div ng-show = "btx.action == 'received'" class = "ellipsis" >
< div ng-if = "btx.note.body" > {{btx.note.body}}< / div >
< div ng-if = "!btx.note.body" translate > Received< / div >
2016-08-18 20:54:08 -03:00
< / div >
2016-10-21 11:58:33 -03:00
< div ng-show = "btx.action == 'sent'" class = "ellipsis" >
< div ng-if = "btx.message" > {{btx.message}}< / div >
< div ng-if = "!btx.message && btx.note.body" > {{btx.note.body}}< / div >
2016-10-27 10:28:46 -03:00
< div ng-if = "!btx.message && !btx.note.body && addressbook[btx.addressTo]" >
{{addressbook[btx.addressTo].name || addressbook[btx.addressTo]}}
2016-10-21 11:58:33 -03:00
< / div >
2016-10-27 10:28:46 -03:00
< div ng-if = "!btx.message && !btx.note.body && !addressbook[btx.addressTo]" translate > Sent< / div >
2016-08-18 20:54:08 -03:00
< / div >
2016-08-15 16:07:30 -03:00
2016-10-21 11:58:33 -03:00
< div ng-show = "btx.action == 'moved'" class = "ellipsis" >
< div ng-if = "btx.note.body" > {{btx.note.body}}< / div >
< div ng-if = "!btx.note.body" translate > Moved< / div >
2016-08-15 10:25:43 -03:00
< / div >
2016-08-18 20:54:08 -03:00
< span class = "label tu warning radius" ng-if = "btx.action == 'invalid'" translate > Invalid< / span >
2016-10-18 21:10:17 -04:00
< / div >
2016-08-18 20:54:08 -03:00
< / div >
< / div >
2016-10-03 11:52:48 -03:00
< ion-infinite-scroll
ng-if="txHistoryShowMore"
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 >
< / ion-view >