diff --git a/public/views/amazon.html b/public/views/amazon.html index 49edf5f46..acc17ea58 100644 --- a/public/views/amazon.html +++ b/public/views/amazon.html @@ -1,11 +1,9 @@ - - - Close - - - Gift cards + + + + Amazon.com Gift Cards @@ -21,7 +19,7 @@ - + Buy now @@ -33,7 +31,7 @@ - + Buy Gift Card diff --git a/public/views/buyAmazon.html b/public/views/buyAmazon.html index cd5adc9c1..6fea44d8d 100644 --- a/public/views/buyAmazon.html +++ b/public/views/buyAmazon.html @@ -1,10 +1,8 @@ - - - - - + + + Buy diff --git a/public/views/modals/amazon-card-details.html b/public/views/modals/amazon-card-details.html index de0fa25ca..daf729be4 100644 --- a/public/views/modals/amazon-card-details.html +++ b/public/views/modals/amazon-card-details.html @@ -1,6 +1,6 @@ - + Close Details diff --git a/public/views/tab-home.html b/public/views/tab-home.html index 935b34bb7..4e366ef67 100644 --- a/public/views/tab-home.html +++ b/public/views/tab-home.html @@ -90,7 +90,7 @@ - + @@ -125,7 +125,7 @@ Buy or Sell Bitcoin - + diff --git a/src/js/controllers/buyAmazon.js b/src/js/controllers/buyAmazon.js index 0a57242e5..fd228db45 100644 --- a/src/js/controllers/buyAmazon.js +++ b/src/js/controllers/buyAmazon.js @@ -208,7 +208,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController', $log.debug("Saving new gift card with status: " + newData.status); self.giftCard = newData; - if (newData.status == 'PENDING') $state.transitionTo('amazon.main'); + if (newData.status == 'PENDING') $state.transitionTo('tabs.giftcards.amazon'); $timeout(function() { $scope.$digest(); }); diff --git a/src/js/routes.js b/src/js/routes.js index c520854c3..33435e551 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -710,30 +710,35 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr templateUrl: 'views/sellCoinbase.html' }) + /* + * + * Gift Cards + * + */ - /* - * - * Amazon Gift Card - * - */ - - .state('amazon', { - url: '/amazon', - abstract: true, - template: '' + .state('tabs.giftcards', { + url: '/giftcards', + abstract: true }) - .state('amazon.main', { - url: '/main', + + /* + * + * Amazon.com Gift Card + * + */ + + .state('tabs.giftcards.amazon', { + url: '/amazon', views: { - 'amazon': { + 'tab-home@tabs': { templateUrl: 'views/amazon.html' } } }) - .state('amazon.buy', { + .state('tabs.giftcards.amazon.buy', { url: '/buy', views: { - 'amazon': { + 'tab-home@tabs': { templateUrl: 'views/buyAmazon.html' } }