From 86fce3af420f2a5fb282c4892412469b5d9a3219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Tue, 3 Nov 2015 09:59:30 -0300 Subject: [PATCH 1/4] adding reset to default url button --- public/views/preferencesBwsUrl.html | 1 + src/js/controllers/preferencesBwsUrl.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/views/preferencesBwsUrl.html b/public/views/preferencesBwsUrl.html index 909c28da7..e815c5a8d 100644 --- a/public/views/preferencesBwsUrl.html +++ b/public/views/preferencesBwsUrl.html @@ -11,6 +11,7 @@
+
diff --git a/src/js/controllers/preferencesBwsUrl.js b/src/js/controllers/preferencesBwsUrl.js index 4ec00fd9f..c27786220 100644 --- a/src/js/controllers/preferencesBwsUrl.js +++ b/src/js/controllers/preferencesBwsUrl.js @@ -12,6 +12,10 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController', this.bwsurl = (config.bwsFor && config.bwsFor[walletId]) || defaults.bws.url; + this.resetDefaultUrl = function() { + this.bwsurl = 'https://bws.bitpay.com/bws/api'; + }; + this.save = function() { var bws; @@ -46,4 +50,4 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController', }); }); }; - }); + }); \ No newline at end of file From 6108de0795c4ae155ca41b97fa1f7afb0c290af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Tue, 3 Nov 2015 10:21:09 -0300 Subject: [PATCH 2/4] change button position --- public/views/preferencesBwsUrl.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/views/preferencesBwsUrl.html b/public/views/preferencesBwsUrl.html index e815c5a8d..27667d61e 100644 --- a/public/views/preferencesBwsUrl.html +++ b/public/views/preferencesBwsUrl.html @@ -7,11 +7,12 @@
-

+

+ Reset to default url +

-
From 0160be877741077e5f43e3710a46b38f6774904a Mon Sep 17 00:00:00 2001 From: bechi Date: Tue, 3 Nov 2015 11:01:37 -0300 Subject: [PATCH 3/4] fix reset url link --- public/views/preferencesBwsUrl.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/views/preferencesBwsUrl.html b/public/views/preferencesBwsUrl.html index 27667d61e..81696ba3e 100644 --- a/public/views/preferencesBwsUrl.html +++ b/public/views/preferencesBwsUrl.html @@ -7,11 +7,10 @@
-

- Reset to default url -

+

- + + Set default url From d7f4b2bf92724cb3263204c09c677ccf7a87ae20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Tue, 3 Nov 2015 11:20:24 -0300 Subject: [PATCH 4/4] deleting h4 class --- public/views/preferencesBwsUrl.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/views/preferencesBwsUrl.html b/public/views/preferencesBwsUrl.html index 81696ba3e..bca608ea3 100644 --- a/public/views/preferencesBwsUrl.html +++ b/public/views/preferencesBwsUrl.html @@ -7,7 +7,7 @@
-

+

Set default url