glidera fixes
This commit is contained in:
parent
021f82fede
commit
d35e4a93da
2 changed files with 5 additions and 5 deletions
|
|
@ -112,7 +112,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
|
||||||
|
|
||||||
this.get2faCode = function(token) {
|
this.get2faCode = function(token) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.loading = 'Sending 2FA code...';
|
self.loading = 'Sending 2FA code...';
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
glideraService.get2faCode(token, function(err, sent) {
|
glideraService.get2faCode(token, function(err, sent) {
|
||||||
self.loading = null;
|
self.loading = null;
|
||||||
|
|
@ -135,7 +135,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
|
||||||
self.error = err;
|
self.error = err;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.loading = 'Selling Bitcoin...';
|
self.loading = 'Selling Bitcoin...';
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
addressService.getAddress(fc.credentials.walletId, null, function(err, refundAddress) {
|
addressService.getAddress(fc.credentials.walletId, null, function(err, refundAddress) {
|
||||||
if (!refundAddress) {
|
if (!refundAddress) {
|
||||||
|
|
@ -174,7 +174,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
txSignService.sign(tx, function(err, txp) {
|
txSignService.sign(txp, function(err, txp) {
|
||||||
if (err) {
|
if (err) {
|
||||||
self.loading = null;
|
self.loading = null;
|
||||||
self.error = err;
|
self.error = err;
|
||||||
|
|
@ -192,7 +192,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
|
||||||
self.loading = null;
|
self.loading = null;
|
||||||
if (err) {
|
if (err) {
|
||||||
self.error = err;
|
self.error = err;
|
||||||
fc.removeTxProposal(txp, function(err, txpb) {
|
fc.removeTxProposal(txp, function(err, txp) {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$emit('Local/GlideraError');
|
$scope.$emit('Local/GlideraError');
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
||||||
|
|
||||||
// Glidera
|
// Glidera
|
||||||
// Disabled for testnet
|
// Disabled for testnet
|
||||||
configCache.glidera.testnet = false;
|
configCache.glidera.testnet = true;
|
||||||
|
|
||||||
$log.debug('Preferences read:', configCache)
|
$log.debug('Preferences read:', configCache)
|
||||||
return cb(err, configCache);
|
return cb(err, configCache);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue