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] 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