From 5159508d41e80a78e9b96140a703fc893d78c08b Mon Sep 17 00:00:00 2001 From: bechi Date: Fri, 31 Oct 2014 09:33:00 -0300 Subject: [PATCH 1/4] fix history section --- css/src/main.css | 19 +++++++------------ views/history.html | 12 ++++++------ 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/css/src/main.css b/css/src/main.css index f3c6fffe5..8cfa733cb 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -382,8 +382,8 @@ a:hover { table.last-transactions-content { padding: 0; border: 0; - background-color: #fff; - margin: 0; + background-color: #F8F8FB; + margin: 15px 0; } .last-transactions-content .box-status { @@ -560,22 +560,17 @@ a.button-setup { } .line { - border-top: 1px solid #f2f2f2; - margin: 0.5rem 0 1rem; -} - -.line-sidebar { - border-top: 1px solid #34495E; + border-top: 1px solid #F8F8FB; margin: 0.7rem 0; } -.line-sidebar-t { - border-top: 1px solid #3C5269; +.line-t { + border-top: 1px solid #F8F8FB; padding-top: 0.5rem; } -.line-sidebar-b { - border-bottom: 1px solid #3C5269; +.line-b { + border-bottom: 1px solid #F8F8FB; padding-bottom: 0.5rem; } diff --git a/views/history.html b/views/history.html index 6d48c023f..ba8ea6515 100644 --- a/views/history.html +++ b/views/history.html @@ -8,8 +8,8 @@ No transactions yet.
-
-
+
+
  @@ -17,7 +17,7 @@
-
+
{{btx.amount| noFractionNumber}} {{$root.wallet.settings.unitName}} {{btx.action}}
@@ -34,8 +34,8 @@
@@ -61,7 +61,7 @@ -
+
Transaction ID: Date: Fri, 31 Oct 2014 12:04:59 -0300 Subject: [PATCH 2/4] history details --- css/src/main.css | 1 + views/history.html | 20 ++++++++------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/css/src/main.css b/css/src/main.css index 8cfa733cb..007944bf6 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -532,6 +532,7 @@ a.button-setup { .p15 {padding:15px;} .p20 {padding:20px;} .p10 {padding:10px;} +.p10b {padding-bottom:10px;} .m30v {margin: 30px 0;} .m10h {margin:0 10px;} .m10v {margin:10px 0;} diff --git a/views/history.html b/views/history.html index ba8ea6515..3d85e457c 100644 --- a/views/history.html +++ b/views/history.html @@ -7,7 +7,7 @@
No transactions yet.
-
+
  @@ -31,9 +31,9 @@ {{btx.comment}}
-
- + @@ -43,7 +43,7 @@ -
{{c.cId === $root.wallet.getMyCopayerId() ? 'Me' : $root.wallet.publicKeyRing.nicknameForCopayer(c.cId)}} + {{c.cId === $root.wallet.getMyCopayerId() ? 'Me' : $root.wallet.publicKeyRing.nicknameForCopayer(c.cId)}} @@ -61,14 +61,10 @@
-
- Transaction ID: - - {{btx.txid}} - - +
+
+ Transaction ID: {{btx.txid}} + More details
From da5aa1448751562169a841d36cfc49158aad9467 Mon Sep 17 00:00:00 2001 From: bechi Date: Fri, 31 Oct 2014 12:14:47 -0300 Subject: [PATCH 3/4] fix refresh btn position --- js/controllers/head.js | 14 ++++++++++++++ views/includes/head.html | 5 +++++ views/includes/sidebar.html | 3 --- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/js/controllers/head.js b/js/controllers/head.js index 6593ee32d..3a665d01e 100644 --- a/js/controllers/head.js +++ b/js/controllers/head.js @@ -16,6 +16,20 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc controllerUtils.logout(); }; + $scope.refresh = function() { + var w = $rootScope.wallet; + if (!w) return; + + if (w.isReady()) { + w.sendWalletReady(); + if ($rootScope.addrInfos.length > 0) { + controllerUtils.clearBalanceCache(w); + controllerUtils.updateBalance(w, function() { + $rootScope.$digest(); + }); + } + } + }; // Ensures a graceful disconnect window.onbeforeunload = function() { diff --git a/views/includes/head.html b/views/includes/head.html index 18cf9b318..e74957ef7 100644 --- a/views/includes/head.html +++ b/views/includes/head.html @@ -19,4 +19,9 @@ + diff --git a/views/includes/sidebar.html b/views/includes/sidebar.html index e7e58d7cf..933158b91 100644 --- a/views/includes/sidebar.html +++ b/views/includes/sidebar.html @@ -7,9 +7,6 @@
[ {{$root.wallet.requiredCopayers}} of {{$root.wallet.totalCopayers}} ]
- - -
{{$root.wallet.getName()}}
From e7703692df4b157fe4299a3705d521ccbafbfae3 Mon Sep 17 00:00:00 2001 From: bechi Date: Fri, 31 Oct 2014 12:16:02 -0300 Subject: [PATCH 4/4] fix button class --- views/includes/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/includes/head.html b/views/includes/head.html index e74957ef7..27c9eb3cd 100644 --- a/views/includes/head.html +++ b/views/includes/head.html @@ -17,7 +17,7 @@