diff --git a/public/views/buyGlidera.html b/public/views/buyGlidera.html index d81b7931b..ca3009015 100644 --- a/public/views/buyGlidera.html +++ b/public/views/buyGlidera.html @@ -27,12 +27,12 @@
A SMS containing a confirmation code was sent to your phone.
Please, enter the code below
diff --git a/public/views/glidera.html b/public/views/glidera.html
index c222eef6b..d19250c7a 100644
--- a/public/views/glidera.html
+++ b/public/views/glidera.html
@@ -165,7 +165,7 @@
You will need to log back in to buy or sell bitcoin in Copay.
+
A SMS containing a confirmation code was sent to your phone.
Please, enter the code below
diff --git a/src/js/controllers/buyGlidera.js b/src/js/controllers/buyGlidera.js
index 5b4724fb0..2aaf7cbe7 100644
--- a/src/js/controllers/buyGlidera.js
+++ b/src/js/controllers/buyGlidera.js
@@ -11,6 +11,7 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
this.getBuyPrice = function(token, price) {
var self = this;
+ this.error = null;
if (!price || (price && !price.qty && !price.fiat)) {
this.buyPrice = null;
return;
diff --git a/src/js/controllers/preferencesGlidera.js b/src/js/controllers/preferencesGlidera.js
index 43d270f31..b90ae39c0 100644
--- a/src/js/controllers/preferencesGlidera.js
+++ b/src/js/controllers/preferencesGlidera.js
@@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesGlideraController',
- function($scope, $modal, $timeout, profileService, applicationService, glideraService, storageService) {
+ function($scope, $modal, $timeout, profileService, applicationService, glideraService, storageService, isChromeApp) {
this.getEmail = function(token) {
var self = this;
@@ -31,6 +31,14 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
});
};
+ // DISABLE ANIMATION ON CHROMEAPP
+ if (isChromeApp) {
+ var animatedSlideRight = 'full';
+ }
+ else {
+ var animatedSlideRight = 'full animated slideInRight';
+ }
+
this.revokeToken = function() {
var fc = profileService.focusedClient;
var ModalInstanceCtrl = function($scope, $modalInstance) {
@@ -44,9 +52,10 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
var modalInstance = $modal.open({
templateUrl: 'views/modals/glidera-confirmation.html',
- windowClass: 'full',
+ windowClass: animatedSlideRight,
controller: ModalInstanceCtrl
});
+
modalInstance.result.then(function(ok) {
if (ok) {
storageService.removeGlideraToken(fc.credentials.network, function() {
@@ -56,6 +65,11 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
});
}
});
+
+ modalInstance.result.finally(function() {
+ var m = angular.element(document.getElementsByClassName('reveal-modal'));
+ m.addClass('slideOutRight');
+ });
};
});
diff --git a/src/js/controllers/sellGlidera.js b/src/js/controllers/sellGlidera.js
index 0fd2308c8..4d6622055 100644
--- a/src/js/controllers/sellGlidera.js
+++ b/src/js/controllers/sellGlidera.js
@@ -14,8 +14,8 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
this.getSellPrice = function(token, price) {
var self = this;
+ this.error = null;
if (!price || (price && !price.qty && !price.fiat)) {
- this.error = null;
this.sellPrice = null;
return;
}