diff --git a/src/js/controllers/walletDetails.js b/src/js/controllers/walletDetails.js index f8b77cb59..912086c79 100644 --- a/src/js/controllers/walletDetails.js +++ b/src/js/controllers/walletDetails.js @@ -156,9 +156,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun var updateTxHistory = function(cb) { if (!cb) cb = function() {}; - if ($scope.updatingTxHistory) return; - $scope.updatingTxHistory = true; $scope.updateTxHistoryError = false; $scope.updatingTxHistoryProgress = 0; @@ -358,6 +356,8 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun if (!$scope.wallet) return; $scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1; + $scope.updatingTxHistory = true; + addressbookService.list(function(err, ab) { if (err) $log.error(err); $scope.addressbook = ab || {}; diff --git a/src/sass/views/walletDetails.scss b/src/sass/views/walletDetails.scss index 9553bf489..a3ef99348 100644 --- a/src/sass/views/walletDetails.scss +++ b/src/sass/views/walletDetails.scss @@ -88,6 +88,27 @@ padding: 1rem; background: #f8f8f9; } + + &__no-transaction { + color: $v-mid-gray; + font-size: 12.5px; + text-align: center; + padding-top: 2rem; + } + + &__no-update-history { + color: $v-error-color; + font-size: 12.5px; + text-align: center; + padding-top: 2rem; + } + + &__updating-history { + color: $v-mid-gray; + font-size: 12.5px; + text-align: center; + padding-top: 1rem; + } } #walletDetails { @@ -177,10 +198,6 @@ align-items: center; justify-content: center; - &.collapsible { - margin-bottom: 10px; - } - &__balance { -webkit-transform: scale3d(1, 1, 1) translateY(45px); transform: scale3d(1, 1, 1) translateY(45px); @@ -200,6 +217,15 @@ border: 1px solid rgba(255,255,255,0.25); } + &__error { + cursor: pointer; + font-size: 14px; + padding: 35px 20px; + } + + } + .no-alternative { + padding-top: 45px; } .item.item-footer { font-weight: lighter; diff --git a/www/views/includes/walletInfo.html b/www/views/includes/walletInfo.html index e0690f6ad..1ddcc4904 100644 --- a/www/views/includes/walletInfo.html +++ b/www/views/includes/walletInfo.html @@ -1,5 +1,6 @@ - +
Auditable diff --git a/www/views/walletDetails.html b/www/views/walletDetails.html index 4e7809f25..61bc9e1f4 100644 --- a/www/views/walletDetails.html +++ b/www/views/walletDetails.html @@ -14,72 +14,59 @@
-
+
-
-
- {{updateStatusError}} - Tap to retry -
+
+ {{updateStatusError}} +
-
- This wallet is not registered at the given Bitcore Wallet Service (BWS). You can recreate it from the local information. - Recreate -
+
+ This wallet is not registered at the given Bitcore Wallet Service (BWS). You can recreate it from the local information. +
+
+ {{status.totalBalanceStr}}
- {{status.totalBalanceStr}} -
- {{status.totalBalanceAlternative}} {{status.alternativeIsoCode}} -
-
- -
- [Balance Hidden] -
- Tap and hold to show -
-
- -
- -
- -
-
-
- ... + class="size-14 amount-alternative" + ng-if="status.totalBalanceAlternative && wallet.network == 'livenet'" + ng-style="{opacity: altAmountOpacity}"> + {{status.totalBalanceAlternative}} {{status.alternativeIsoCode}}
+ +
+ [Balance Hidden] +
+ Tap and hold to show +
+
+ +
+ +
+
@@ -94,77 +81,17 @@ on-refresh="onRefresh()"> -
-
-
-
- -
- {{updateStatusError}} - Tap to retry -
- -
- This wallet is not registered at the given Bitcore Wallet Service (BWS). You can recreate it from the local information. - Recreate -
- -
- {{status.totalBalanceStr}} -
{{status.totalBalanceAlternative}} {{status.alternativeIsoCode}}
-
- -
- -
- -
- [Balance Hidden] -
- Tap and hold to show -
-
-
-
-
- ... -
-
-
- -
- -
-
- Wallet not backed up - Spending this balance will need significant Bitcoin network fees -
-
+
+
@@ -189,37 +116,30 @@ -
No transactions yet
-
Could not update transaction history
-
-
- -
-
-
- Updating transaction history. Please stand by.
- {{updatingTxHistoryProgress}} transactions downloaded -
-
+
+ Updating transaction history. Please stand by.
+ {{updatingTxHistoryProgress}} transactions downloaded
-
+