Fix Amazon routes
This commit is contained in:
parent
5bd450270b
commit
2f547520b4
6 changed files with 32 additions and 31 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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: '<ion-nav-view name="amazon"></ion-nav-view>'
|
||||
.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'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue