From 8cefdc1312297752ec2ff805f8e8ef4b83988f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Edgardo=20Baz=C3=A1n?= Date: Wed, 26 Apr 2017 08:53:32 -0300 Subject: [PATCH] Revert "adding loading placeholders to avoid the screen resize in tab-home view" --- src/js/controllers/tab-home.js | 3 - src/sass/views/tab-home.scss | 38 -------- www/views/includes/wallets.html | 2 +- www/views/tab-home.html | 158 ++++++++++++++------------------ www/views/tab-receive.html | 2 +- www/views/tab-settings.html | 30 +++--- 6 files changed, 81 insertions(+), 152 deletions(-) diff --git a/src/js/controllers/tab-home.js b/src/js/controllers/tab-home.js index 020716608..7a3fd83f8 100644 --- a/src/js/controllers/tab-home.js +++ b/src/js/controllers/tab-home.js @@ -194,7 +194,6 @@ angular.module('copayApp.controllers').controller('tabHomeController', if (err) $log.error(err); $scope.txps = txps; $scope.txpsN = n; - $scope.txpsFinished = true; $timeout(function() { $ionicScrollDelegate.resize(); $scope.$apply(); @@ -226,7 +225,6 @@ angular.module('copayApp.controllers').controller('tabHomeController', } if (++j == i) { updateTxps(); - $scope.walletsFinished = true; } }); }); @@ -254,7 +252,6 @@ angular.module('copayApp.controllers').controller('tabHomeController', } $scope.notifications = notifications; $scope.notificationsN = total; - $scope.notificationsFinished = true; $timeout(function() { $ionicScrollDelegate.resize(); $scope.$apply(); diff --git a/src/sass/views/tab-home.scss b/src/sass/views/tab-home.scss index a35975664..3886ba7ee 100644 --- a/src/sass/views/tab-home.scss +++ b/src/sass/views/tab-home.scss @@ -53,44 +53,6 @@ } } } - .loading-block-title { - height: 20px; - width: 150px; - background:-webkit-radial-gradient(#fff, #f7f7f7); - background-size: 20px 100px; - -webkit-animation: m .6s linear infinite; - } - .loading-block-body { - width: 100%; - height: 160px; - background: -webkit-radial-gradient(#fff, #f7f7f7); - background-size: 25px 100%; - -webkit-animation: m .6s linear infinite; - } - @keyframes m { - 0% { - background-position: 20px 0; - } - 100% { - } - } - } - .card-loading-placeholder { - width: 100%; - margin-bottom: 0; - } - .loading-placeholder { - height: 100%; - .row { - height: 50%; - } - } - .animate-show-hide.ng-hide { - opacity: 0; - } - .animate-show-hide.ng-hide-add, - .animate-show-hide.ng-hide-remove { - transition: all linear 0.2s; } .wallet-details__item.item { padding-top: 0; diff --git a/www/views/includes/wallets.html b/www/views/includes/wallets.html index bca92b8f0..4fa2cc894 100644 --- a/www/views/includes/wallets.html +++ b/www/views/includes/wallets.html @@ -8,7 +8,7 @@ {{wallet.name || wallet.id}} - {{wallet.status.availableBalanceStr || '...'}} + {{wallet.status.availableBalanceStr}} [Balance Hidden] diff --git a/www/views/tab-home.html b/www/views/tab-home.html index 8022dc529..6d2ec9247 100644 --- a/www/views/tab-home.html +++ b/www/views/tab-home.html @@ -39,100 +39,76 @@ On this screen you can see all your wallets, accounts, and assets. -
-
- -
- diff --git a/www/views/tab-settings.html b/www/views/tab-settings.html index 76c76ec7b..cfc054614 100644 --- a/www/views/tab-settings.html +++ b/www/views/tab-settings.html @@ -47,25 +47,22 @@ - - - - {{'Language' | translate}} - - {{currentLanguageName | translate}} - - - ... - - - + + + + {{'Language' | translate}} + + {{currentLanguageName|translate}} + + + {{'Bitcoin Unit' | translate}} - {{unitName || '...'}} + {{unitName}} @@ -76,7 +73,7 @@ {{'Alternative Currency' | translate}} - {{selectedAlternative.name || '...'}} + {{selectedAlternative.name}} @@ -87,10 +84,7 @@ {{'Bitcoin Network Fee Policy' | translate}} - {{feeOpts[currentFeeLevel] | translate}} - - - ... + {{feeOpts[currentFeeLevel]|translate}}