From 7618488bc3d680715f166926f3ca46db638fbab9 Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Wed, 10 Sep 2014 15:28:13 -0300 Subject: [PATCH 1/7] Fixed --- js/controllers/copayers.js | 8 +++++++- views/copayers.html | 33 ++++++++++++++++++--------------- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/js/controllers/copayers.js b/js/controllers/copayers.js index fc140593b..cf3b880cc 100644 --- a/js/controllers/copayers.js +++ b/js/controllers/copayers.js @@ -5,6 +5,12 @@ angular.module('copayApp.controllers').controller('CopayersController', $scope.hideAdv = true; + + $scope.skipBackup = function() { + var w = $rootScope.wallet; + w.setBackupReady(); + }; + $scope.backup = function() { var w = $rootScope.wallet; w.setBackupReady(); @@ -37,4 +43,4 @@ angular.module('copayApp.controllers').controller('CopayersController', return $rootScope.wallet.publicKeyRing.isBackupReady(copayer.copayerId); } - }); + }); \ No newline at end of file diff --git a/views/copayers.html b/views/copayers.html index cbd00e805..ddd2a02a5 100644 --- a/views/copayers.html +++ b/views/copayers.html @@ -51,6 +51,7 @@
+ Creating and storing a backup will allow to restore funds of the wallet
@@ -75,21 +76,23 @@
-
- + + + + + Skip Backup + +
- - - From e8190730030b8a37e077eaccb865115ab83b965b Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Thu, 11 Sep 2014 10:28:56 -0300 Subject: [PATCH 3/7] Conflicts solved --- js/models/core/Wallet.js | 2 +- test/test.Wallet.js | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 809c7aaa3..c2278b820 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -87,7 +87,7 @@ function Wallet(opts) { this.lastMessageFrom = {}; //to avoid confirmation of copayer's backups if is imported from a file - this.isImported = opts.isImported; + this.isImported = opts.isImported || false; this.paymentRequests = opts.paymentRequests || {}; diff --git a/test/test.Wallet.js b/test/test.Wallet.js index d6b765b46..983cfc076 100644 --- a/test/test.Wallet.js +++ b/test/test.Wallet.js @@ -829,6 +829,23 @@ describe('Wallet model', function() { }); }); + describe('#createTxSync', function() { + it('should fail if amount below min value', function() { + var w = cachedCreateW2(); + var utxo = createUTXO(w); + + var badCreate = function() { + w.createTxSync( + 'mgGJEugdPnvhmRuFdbdQcFfoFLc1XXeB79', + '123', + null, + utxo + ); + } + chai.expect(badCreate).to.throw('invalid amount'); + }); + }); + describe('removeTxWithSpentInputs', function() { it('should remove pending TxProposal with spent inputs', function(done) { var w = cachedCreateW2(); @@ -1533,4 +1550,4 @@ describe('Wallet model', function() { should.exist(n.networkNonce); }); -}); \ No newline at end of file +}); From 2a4b054ba129fe462a930056e19026f269197d68 Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Thu, 11 Sep 2014 11:30:55 -0300 Subject: [PATCH 4/7] Solving conflicts --- test/test.Wallet.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/test.Wallet.js b/test/test.Wallet.js index 983cfc076..e55128119 100644 --- a/test/test.Wallet.js +++ b/test/test.Wallet.js @@ -829,23 +829,6 @@ describe('Wallet model', function() { }); }); - describe('#createTxSync', function() { - it('should fail if amount below min value', function() { - var w = cachedCreateW2(); - var utxo = createUTXO(w); - - var badCreate = function() { - w.createTxSync( - 'mgGJEugdPnvhmRuFdbdQcFfoFLc1XXeB79', - '123', - null, - utxo - ); - } - chai.expect(badCreate).to.throw('invalid amount'); - }); - }); - describe('removeTxWithSpentInputs', function() { it('should remove pending TxProposal with spent inputs', function(done) { var w = cachedCreateW2(); From 7de88f2cc813256b78f7b67c3f0535d446a91aa6 Mon Sep 17 00:00:00 2001 From: bechi Date: Thu, 11 Sep 2014 11:54:14 -0300 Subject: [PATCH 5/7] fix text color --- views/copayers.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/copayers.html b/views/copayers.html index a9c7427f9..1b7f82bdc 100644 --- a/views/copayers.html +++ b/views/copayers.html @@ -51,7 +51,7 @@
- Creating and storing a backup will allow to restore funds of the wallet +

Creating and storing a backup will allow to restore funds of the wallet

From 7095750d6fa1860ce0de57d2beae71f67e9acab7 Mon Sep 17 00:00:00 2001 From: bechi Date: Thu, 11 Sep 2014 13:01:22 -0300 Subject: [PATCH 6/7] fix style --- css/src/main.css | 2 +- views/copayers.html | 18 +++++++++--------- views/join.html | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/css/src/main.css b/css/src/main.css index bea1ac145..16d4d0d2a 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -1046,7 +1046,7 @@ a.text-warning:hover {color: #FD7262;} background: #2C3E50; -moz-box-shadow: 0px 0px 0px 0px rgba(255,255,255,0.09), inset 0px 0px 2px 0px rgba(0,0,0,0.20); box-shadow: 0px 0px 0px 0px rgba(255,255,255,0.09), inset 0px 0px 2px 0px rgba(0,0,0,0.20); - margin-bottom: 5px; + margin-bottom: 15px; } .box-setup-copay-required { diff --git a/views/copayers.html b/views/copayers.html index 1b7f82bdc..22f0749d3 100644 --- a/views/copayers.html +++ b/views/copayers.html @@ -51,7 +51,7 @@
-

Creating and storing a backup will allow to restore funds of the wallet

+

Creating and storing a backup will allow to restore funds of the wallet

@@ -75,14 +75,7 @@
-
- - Skip Backup - - - + + + Skip Backup + +
-

Creating and storing a backup will allow to restore funds of the wallet

+

Creating and storing a backup will allow to restore funds of the wallet