From 1b156c3b6574980baf50d9afbd889c6debc62e5f Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 15 May 2015 20:09:45 -0300 Subject: [PATCH 1/3] Fix uri payment path --- src/js/init.js | 2 +- src/js/routes.js | 6 +++--- src/js/services/uriHandler.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/init.js b/src/js/init.js index 8cacff9a5..a9acfcce3 100644 --- a/src/js/init.js +++ b/src/js/init.js @@ -56,7 +56,7 @@ angular.element(document).ready(function() { function handleBitcoinURI(url) { if (!url) return; setTimeout(function() { - window.location = '#/uri-payment/' + url; + window.location = '#/payment/' + url; }, 1000); } diff --git a/src/js/routes.js b/src/js/routes.js index eda4ad198..a3bdf21e7 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -112,8 +112,8 @@ angular } } }) - .state('uri-payment', { - url: '/uri-payment/:data', + .state('payment', { + url: '/payment/:data', templateUrl: 'views/paymentUri.html', views: { 'main': { @@ -385,7 +385,7 @@ angular walletHome: 0, copayers: -1, cordova: -1, - uri-payment: -1, + payment: -1, preferences: 11, preferencesColor: 12, diff --git a/src/js/services/uriHandler.js b/src/js/services/uriHandler.js index da67ab4be..3cb09e98e 100644 --- a/src/js/services/uriHandler.js +++ b/src/js/services/uriHandler.js @@ -4,7 +4,7 @@ var UriHandler = function() {}; UriHandler.prototype.register = function() { var base = window.location.origin + '/'; - var url = base + '#/uri-payment/%s'; + var url = base + '#/payment/%s'; if(navigator.registerProtocolHandler) { navigator.registerProtocolHandler('bitcoin', url, 'Copay'); From 345e42688ad134fd8bfe73f07a6205294da399ae Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 15 May 2015 20:10:12 -0300 Subject: [PATCH 2/3] Fix uri payment for amount undefined --- public/views/paymentUri.html | 16 ++++++++-------- src/js/controllers/paymentUri.js | 6 ++++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/public/views/paymentUri.html b/public/views/paymentUri.html index 9d3b97eea..0c5ece585 100644 --- a/public/views/paymentUri.html +++ b/public/views/paymentUri.html @@ -5,20 +5,20 @@
-
-
+
+

Bitcoin URI is NOT valid!

-
+

Make a payment to

-
Address: {{uri.address.toString()}}
-
Amount: {{uri.amount}}
-
Message: {{uri.message}}
-
Network: {{uri.network}}
+
Address: {{payment.uri.address.toString()}}
+
Amount: {{payment.uri.amount}}
+
Message: {{payment.uri.message}}
+
Network: {{payment.uri.network}}

Select a wallet

-