-
- Buy & Sell Bitcoin
+
-
+
+
+
+
diff --git a/src/js/controllers/glideraUri.js b/src/js/controllers/glideraUri.js
index 7d10d9562..aef209427 100644
--- a/src/js/controllers/glideraUri.js
+++ b/src/js/controllers/glideraUri.js
@@ -14,7 +14,7 @@ angular.module('copayApp.controllers').controller('glideraUriController',
} else if (data && data.access_token) {
storageService.setGlideraToken($scope.network, data.access_token, function() {
$timeout(function() {
- $state.go('glidera.main');
+ $state.go('tabs.buyandsell.glidera');
$scope.$apply();
}, 500);
});
diff --git a/src/js/controllers/modals/glideraConfirmation.js b/src/js/controllers/modals/glideraConfirmation.js
deleted file mode 100644
index 8a1b846ef..000000000
--- a/src/js/controllers/modals/glideraConfirmation.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-angular.module('copayApp.controllers').controller('glideraConfirmationController', function($scope, $timeout, $state, glideraService) {
-
- $scope.ok = function() {
- glideraService.removeToken(function() {
- $timeout(function() {
- $state.go('glidera.main');
- }, 100);
- });
- $scope.cancel();
- };
-
- $scope.cancel = function() {
- $scope.glideraConfirmationModal.hide();
- };
-
-});
diff --git a/src/js/controllers/preferencesGlidera.js b/src/js/controllers/preferencesGlidera.js
index 16749e66e..d9352d832 100644
--- a/src/js/controllers/preferencesGlidera.js
+++ b/src/js/controllers/preferencesGlidera.js
@@ -68,7 +68,7 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
if (res) {
glideraService.removeToken(function() {
$timeout(function() {
- $state.go('glidera.main');
+ $state.go('tabs.buyandsell.glidera');
}, 100);
});
}
diff --git a/src/js/routes.js b/src/js/routes.js
index 0794cd07c..c520854c3 100644
--- a/src/js/routes.js
+++ b/src/js/routes.js
@@ -109,11 +109,6 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
templateUrl: 'views/starting.html'
})
- .state('buyandsell', {
- url: '/buyandsell',
- templateUrl: 'views/buyandsell.html'
- })
-
/*
*
* URI
@@ -636,46 +631,57 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
},
})
- /*
- *
- * Glidera
- *
- *
- */
- .state('glidera', {
- url: '/glidera',
- abstract: true,
- template: '
'
- })
- .state('glidera.main', {
- url: '/main',
+ /*
+ *
+ * Buy or Sell Bitcoin
+ *
+ */
+
+ .state('tabs.buyandsell', {
+ url: '/buyandsell',
views: {
- 'glidera': {
+ 'tab-home': {
+ templateUrl: 'views/buyandsell.html'
+ }
+ }
+ })
+
+ /*
+ *
+ * Glidera
+ *
+ *
+ */
+
+ .state('tabs.buyandsell.glidera', {
+ url: '/glidera',
+ views: {
+ 'tab-home@tabs': {
templateUrl: 'views/glidera.html'
}
}
})
- .state('glidera.buy', {
+ .state('tabs.buyandsell.glidera.buy', {
url: '/buy',
views: {
- 'glidera': {
+ 'tab-home@tabs': {
templateUrl: 'views/buyGlidera.html'
}
}
})
- .state('glidera.sell', {
+ .state('tabs.buyandsell.glidera.sell', {
url: '/sell',
views: {
- 'glidera': {
+ 'tab-home@tabs': {
templateUrl: 'views/sellGlidera.html'
}
}
})
- .state('glidera.preferences', {
+ .state('tabs.buyandsell.glidera.preferences', {
url: '/preferences',
views: {
- 'glidera': {
+ 'tab-home@tabs': {
templateUrl: 'views/preferencesGlidera.html'
}
}
diff --git a/src/js/services/glideraService.js b/src/js/services/glideraService.js
index 3f9dfe440..5d0f687b3 100644
--- a/src/js/services/glideraService.js
+++ b/src/js/services/glideraService.js
@@ -1,6 +1,6 @@
'use strict';
-angular.module('copayApp.services').factory('glideraService', function($http, $log, $window, platformInfo, storageService, configService, $rootScope) {
+angular.module('copayApp.services').factory('glideraService', function($http, $log, $window, platformInfo, storageService) {
var root = {};
var credentials = {};
var isCordova = platformInfo.isCordova;
From eead8ee9a735ef76680c44856c85e613333d60c6 Mon Sep 17 00:00:00 2001
From: Gustavo Maximiliano Cortez
Date: Fri, 16 Sep 2016 14:54:39 -0300
Subject: [PATCH 2/2] ion-nav-back-button generic
---
public/views/buyGlidera.html | 8 +++-----
public/views/glidera.html | 1 -
public/views/modals/glidera-tx-details.html | 6 +++---
public/views/preferencesGlidera.html | 8 +++-----
public/views/sellGlidera.html | 8 +++-----
5 files changed, 12 insertions(+), 19 deletions(-)
diff --git a/public/views/buyGlidera.html b/public/views/buyGlidera.html
index 4e20c3c37..f315aa11f 100644
--- a/public/views/buyGlidera.html
+++ b/public/views/buyGlidera.html
@@ -1,10 +1,8 @@
-
-
-
-
-
+
+
+
Buy
diff --git a/public/views/glidera.html b/public/views/glidera.html
index d2a32d31d..c68df1e87 100644
--- a/public/views/glidera.html
+++ b/public/views/glidera.html
@@ -3,7 +3,6 @@
-
Glidera
diff --git a/public/views/modals/glidera-tx-details.html b/public/views/modals/glidera-tx-details.html
index 1e2dd1261..eead98fd2 100644
--- a/public/views/modals/glidera-tx-details.html
+++ b/public/views/modals/glidera-tx-details.html
@@ -1,10 +1,10 @@
-
-
+
Close
- Details
+ Details
diff --git a/public/views/preferencesGlidera.html b/public/views/preferencesGlidera.html
index c32920356..2f04020a1 100644
--- a/public/views/preferencesGlidera.html
+++ b/public/views/preferencesGlidera.html
@@ -1,10 +1,8 @@
-
-
-
-
-
+
+
+
Preferences
diff --git a/public/views/sellGlidera.html b/public/views/sellGlidera.html
index 657338b22..cb2bc0f77 100644
--- a/public/views/sellGlidera.html
+++ b/public/views/sellGlidera.html
@@ -1,10 +1,8 @@
-
-
-
-
-
+
+
+
Sell