From 55bd2355b9051fc0bea6331df160bf7b9ec8ce06 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Mon, 16 Jan 2017 17:21:43 -0300 Subject: [PATCH] Adds btc value before confirm --- src/js/controllers/buyCoinbase.js | 1 + src/js/controllers/sellCoinbase.js | 1 + www/views/buyCoinbase.html | 1 + www/views/sellCoinbase.html | 1 + 4 files changed, 4 insertions(+) diff --git a/src/js/controllers/buyCoinbase.js b/src/js/controllers/buyCoinbase.js index 59bacde15..587ef778e 100644 --- a/src/js/controllers/buyCoinbase.js +++ b/src/js/controllers/buyCoinbase.js @@ -36,6 +36,7 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController', funct $scope.$on("$ionicView.beforeEnter", function(event, data) { coinbaseService.setCredentials(); + $scope.isFiat = data.stateParams.currency ? true : false; [amount, currency, $scope.amountUnitStr] = coinbaseService.parseAmount( data.stateParams.amount, data.stateParams.currency); diff --git a/src/js/controllers/sellCoinbase.js b/src/js/controllers/sellCoinbase.js index af0e62992..d7b385e72 100644 --- a/src/js/controllers/sellCoinbase.js +++ b/src/js/controllers/sellCoinbase.js @@ -119,6 +119,7 @@ angular.module('copayApp.controllers').controller('sellCoinbaseController', func $scope.$on("$ionicView.beforeEnter", function(event, data) { coinbaseService.setCredentials(); + $scope.isFiat = data.stateParams.currency ? true : false; [amount, currency, $scope.amountUnitStr] = coinbaseService.parseAmount( data.stateParams.amount, data.stateParams.currency); diff --git a/www/views/buyCoinbase.html b/www/views/buyCoinbase.html index 01f9a5c87..3521c825a 100644 --- a/www/views/buyCoinbase.html +++ b/www/views/buyCoinbase.html @@ -17,6 +17,7 @@
{{amountUnitStr}}
+ {{buyRequestInfo.amount.amount}} {{buyRequestInfo.amount.currency}} @ ${{buyPrice.amount}} per BTC
diff --git a/www/views/sellCoinbase.html b/www/views/sellCoinbase.html index 2cef05523..cc4befec3 100644 --- a/www/views/sellCoinbase.html +++ b/www/views/sellCoinbase.html @@ -17,6 +17,7 @@
{{amountUnitStr}}
+ {{sellRequestInfo.amount.amount}} {{sellRequestInfo.amount.currency}} @ ${{sellPrice.amount}} per BTC