From 8d153569885e81e9f0e326bae5bddd898c2d94c7 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 28 Jan 2016 16:49:31 -0300 Subject: [PATCH] Ref. Waiting for Copayers --- public/views/copayers.html | 83 +++++++++++++++------------ public/views/modals/confirmation.html | 2 +- public/views/walletHome.html | 2 +- src/css/main.css | 6 +- src/css/mobile.css | 6 -- src/js/controllers/copayers.js | 38 ++++++------ 6 files changed, 69 insertions(+), 68 deletions(-) diff --git a/public/views/copayers.html b/public/views/copayers.html index 4132d42d1..6a8e23c95 100644 --- a/public/views/copayers.html +++ b/public/views/copayers.html @@ -4,57 +4,66 @@ ng-init=""> -
+
-
-
-

Share this invitation with your copayers

-
-
+

Share this invitation with your copayers

-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
{{index.walletSecret || ('Loading...'|translate)}}
-
- - - Share invitation - -
-

- Waiting for copayers - - [ {{index.m}}-of-{{index.n}} ] - -

-
-
-

- - Waiting... -

-
-
-
-
-
+
+
+ + + Share invitation + +
+ +
+

+ Waiting for copayers + + [ {{index.m}}-of-{{index.n}} ] + +

+
+
+ + Waiting... +
+
+ +

Wallet incomplete and broken

Delete it and create a new one

- + +
+ +
+
- -
diff --git a/public/views/modals/confirmation.html b/public/views/modals/confirmation.html index 7bf89e5b6..63558e5df 100644 --- a/public/views/modals/confirmation.html +++ b/public/views/modals/confirmation.html @@ -1,6 +1,6 @@
-

{{title|translate}}

+

{{title|translate}}

-
+
Share this wallet address to receive payments. To protect your privacy, new addresses are generated automatically once you use them.
diff --git a/src/css/main.css b/src/css/main.css index c3ee54f83..026d6d1ab 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -1121,6 +1121,7 @@ input.ng-invalid-match, input.ng-invalid-match:focus { word-wrap: break-word; text-align: center; font-size: 14px; + margin: 10px; } .collapse { @@ -1431,12 +1432,13 @@ input.ng-invalid-match, input.ng-invalid-match:focus { /*/////////////////// SPINNER ////////////////////*/ -#history .spinner, #receive .spinner { +#history .spinner, #receive .spinner, .copayers .spinner { height: 46px; } #history .spinner > div, -#receive .spinner > div +#receive .spinner > div, +.copayers .spinner > div { background-color: #7A8C9E; } diff --git a/src/css/mobile.css b/src/css/mobile.css index cd9c9dd94..d670dcde7 100644 --- a/src/css/mobile.css +++ b/src/css/mobile.css @@ -267,12 +267,6 @@ _:-ms-fullscreen, :root .main { bottom: 0; } -.copayers { - position: relative; - padding: 0; - overflow-y: none; -} - ul.copayer-list img { width: 30px; height: 30px; diff --git a/src/js/controllers/copayers.js b/src/js/controllers/copayers.js index 5a61e5af2..c8a950aab 100644 --- a/src/js/controllers/copayers.js +++ b/src/js/controllers/copayers.js @@ -16,8 +16,6 @@ angular.module('copayApp.controllers').controller('copayersController', go.walletHome(); return; } - self.loading = false; - self.isCordova = isCordova; }; var _modalDeleteWallet = function() { @@ -55,25 +53,23 @@ angular.module('copayApp.controllers').controller('copayersController', var _deleteWallet = function() { var fc = profileService.focusedClient; - $timeout(function() { - var fc = profileService.focusedClient; - var walletName = fc.credentials.walletName; - - profileService.deleteWalletFC({}, function(err) { - if (err) { - this.error = err.message || err; - console.log(err); - $timeout(function() { - $scope.$digest(); - }); - } else { - go.walletHome(); - $timeout(function() { - notification.success(gettextCatalog.getString('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {walletName: walletName})); - }); - } - }); - }, 100); + var walletName = fc.credentials.walletName; + profileService.deleteWalletFC({}, function(err) { + if (err) { + self.error = err.message || err; + $timeout(function() { + $scope.$digest(); + }); + } else { + go.walletHome(); + $timeout(function() { + notification.success( + gettextCatalog.getString('Success'), + gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {walletName: walletName}) + ); + }); + } + }); }; self.deleteWallet = function() {