From 1ead0c3426eb5b9bf9b42a1bfea80190d48e9dfc Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 25 Aug 2016 16:14:13 -0300 Subject: [PATCH 1/2] fix activity spinner - UI --- public/views/tab-home.html | 64 +++++++++++++++------------------- src/js/controllers/tab-home.js | 17 ++++----- src/sass/main.scss | 4 +++ 3 files changed, 39 insertions(+), 46 deletions(-) diff --git a/public/views/tab-home.html b/public/views/tab-home.html index 58d71bc2b..d56eeafe3 100644 --- a/public/views/tab-home.html +++ b/public/views/tab-home.html @@ -3,60 +3,54 @@ Home + +

Activity

- -

Activity

-
- -
-
-
Updating activity. Please stand by.
-
+
+ +
Updating activity. Please stand by
-
-
    -
  • - -
  • +
    +
    + +
    -
  • - -
  • -
  • - No recent activity -
  • -
+ + More ({{notificationsMore}}) + + +
+ No recent activity +
-

Wallets

+

Wallets

-
- - - +
+
-
+
+
+ No Wallet +
- {{item.name || item.id}} + {{item.name || item.id}} {{item.m}}-of-{{item.n}} - Incomplete @@ -67,7 +61,7 @@
-

Buy & Sell Bitcoin

+

Buy & Sell Bitcoin

@@ -78,15 +72,13 @@
-

Next steps

+

Next steps

- - BitPay Card + BitPay Card
- - Gift Cards + Gift Cards
diff --git a/src/js/controllers/tab-home.js b/src/js/controllers/tab-home.js index e00cc6aba..e536ba718 100644 --- a/src/js/controllers/tab-home.js +++ b/src/js/controllers/tab-home.js @@ -4,24 +4,21 @@ angular.module('copayApp.controllers').controller('tabHomeController', function($rootScope, $timeout, $scope, $state, lodash, profileService, walletService, configService, txFormatService, $ionicModal, $log, platformInfo) { var setNotifications = function(notifications) { - var n = walletService.processNotifications(notifications, 5); - $scope.notifications = n; - $scope.notificationsMore = notifications.length > 5 ? notifications.length - 5 : null; + $scope.notificationsMore = notifications.length > 5 ? notifications.length - 5 : null; $timeout(function() { $scope.$apply(); }, 1); - }; - - $scope.updateAllWallets = function() { - $timeout(function() { - $scope.wallets = profileService.getWallets(); + $scope.wallets = profileService.getWallets(); + if (lodash.isEmpty($scope.wallets)) return; - var i = $scope.wallets.length, j =0; + $timeout(function() { + var i = $scope.wallets.length; + var j = 0; var timeSpan = 60 * 60 * 24 * 7; var notifications = []; @@ -52,7 +49,7 @@ angular.module('copayApp.controllers').controller('tabHomeController', }); }); - $scope.$digest(); + $scope.$digest(); }, 100); }; diff --git a/src/sass/main.scss b/src/sass/main.scss index e798b077c..efb92a3eb 100644 --- a/src/sass/main.scss +++ b/src/sass/main.scss @@ -4,6 +4,10 @@ * */ +h3.title { + margin-left: 10px !important; +} + .walletHome h4.title { padding: 0px 0 10px 15px; margin: 5px 0 5px 0; From 2599f8240dc043c95cc5474be80d6d6404cc3c2d Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 25 Aug 2016 16:23:23 -0300 Subject: [PATCH 2/2] fix activity view --- public/views/activity.html | 34 +++++++++++++++++++--------------- public/views/tab-home.html | 4 ++-- src/sass/main.scss | 4 ++++ 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/public/views/activity.html b/public/views/activity.html index 2885b2fb5..d10d45479 100644 --- a/public/views/activity.html +++ b/public/views/activity.html @@ -2,30 +2,34 @@ Recent Activity + + +
-
- -
-
-
Updating activity. Please stand by.
-
+
+ +
Updating activity. Please stand by
-
-
    -
  • - -
  • +
    +
    + +
    -
  • - No recent activity -
  • -
+ + More ({{notificationsMore}}) + + +
+ No recent activity +
diff --git a/public/views/tab-home.html b/public/views/tab-home.html index d56eeafe3..70dd9d2e7 100644 --- a/public/views/tab-home.html +++ b/public/views/tab-home.html @@ -34,8 +34,8 @@

Wallets

-
- +
+
diff --git a/src/sass/main.scss b/src/sass/main.scss index efb92a3eb..3095f9eb8 100644 --- a/src/sass/main.scss +++ b/src/sass/main.scss @@ -525,6 +525,10 @@ ul.wallet-selection.wallets { font-size: 28px; } +.size-32 { + font-size: 32px; +} + .size-36 { font-size: 36px; }