diff --git a/public/views/amazon.html b/public/views/amazon.html index 4d6c22c35..26545e338 100644 --- a/public/views/amazon.html +++ b/public/views/amazon.html @@ -27,7 +27,7 @@
-
+
Sandbox version. Only for testing purpose
diff --git a/public/views/buyAmazon.html b/public/views/buyAmazon.html index 3ce507a29..d1a707108 100644 --- a/public/views/buyAmazon.html +++ b/public/views/buyAmazon.html @@ -27,7 +27,7 @@
-
+
Amazon.com Gift Card
Use your Amazon.com Gift Card* to shop from a huge selection of books, electronics, music, movies, software, apparel, toys, and more. @@ -38,10 +38,16 @@ ng-submit="buy.createTx()" novalidate> -
- - - $ {{fiat}} - + + +
+ + + USD
= limitsAllowed.min && $scope.fiat <= limitsAllowed.max) + return true; + else + return false; + }; + $scope.openWalletsModal = function(wallets) { self.error = null; @@ -59,16 +66,6 @@ angular.module('copayApp.controllers').controller('buyAmazonController', }); }; - this.setAmount = function(plus) { - if (plus && $scope.fiat < maximumAmount ) { - stepAmount = stepAmount + 1; - $scope.fiat = stepAmount * multiplierAmount; - } else if (!plus && $scope.fiat > minimumAmount) { - stepAmount = stepAmount - 1; - $scope.fiat = stepAmount * multiplierAmount; - } - }; - this.createTx = function() { self.error = null; self.errorInfo = null; diff --git a/src/js/controllers/modals/amazonCardDetails.js b/src/js/controllers/modals/amazonCardDetails.js index beb8cbaf7..f776ddcc9 100644 --- a/src/js/controllers/modals/amazonCardDetails.js +++ b/src/js/controllers/modals/amazonCardDetails.js @@ -23,6 +23,7 @@ angular.module('copayApp.controllers').controller('amazonCardDetailsController', $scope.remove = function() { amazonService.saveGiftCard($scope.card, {remove: true}, function(err) { + $scope.$emit('UpdateAmazonList'); $scope.cancel(); }); }; @@ -43,6 +44,7 @@ angular.module('copayApp.controllers').controller('amazonCardDetailsController', $scope.error = err; return; } + $scope.$emit('UpdateAmazonList'); $scope.card = data; $timeout(function() { $scope.$digest(); diff --git a/src/sass/amazon.scss b/src/sass/amazon.scss index 101a672f5..269452aee 100644 --- a/src/sass/amazon.scss +++ b/src/sass/amazon.scss @@ -1,26 +1,4 @@ -.amazon-select-amount { - display: inline-block; - padding: 3px 15px; - background-color: #4B6178; - color: #ffffff; - border-radius: 5px; - margin: 0 5px; - &:hover { - color: #ffffff; - } -} - -.amazon-amount { - display: inline-block; - background-color: #E4E8EC; - padding: 3px 10px; - width: 80px; - text-align: center; - border: 1px solid #ccc; - border-radius: 5px; -} - ol.amazon-list { list-style: decimal !important; }