new onGoingProcess
This commit is contained in:
parent
c294097c1d
commit
90dad5b2a8
33 changed files with 200 additions and 267 deletions
|
|
@ -1057,9 +1057,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
getToken(function(err, accessToken) {
|
||||
if (err || !accessToken) return;
|
||||
else {
|
||||
self.glideraLoading = 'Connecting to Glidera...';
|
||||
ongoingProcess.set('connectingGlidera', true);
|
||||
glideraService.getAccessTokenPermissions(accessToken, function(err, p) {
|
||||
self.glideraLoading = null;
|
||||
ongoingProcess.set('connectingGlidera', false);
|
||||
if (err) {
|
||||
self.glideraError = err;
|
||||
} else {
|
||||
|
|
@ -1090,24 +1090,24 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
});
|
||||
|
||||
if (permissions.transaction_history) {
|
||||
self.glideraLoadingHistory = 'Getting Glidera transactions...';
|
||||
ongoingProcess.set('Fetching Glidera Transactions', true);
|
||||
glideraService.getTransactions(accessToken, function(err, data) {
|
||||
self.glideraLoadingHistory = null;
|
||||
ongoingProcess.set('Fetching Glidera Transactions', false);
|
||||
self.glideraTxs = data;
|
||||
});
|
||||
}
|
||||
|
||||
if (permissions.view_email_address && opts.fullUpdate) {
|
||||
self.glideraLoadingEmail = 'Getting Glidera Email...';
|
||||
ongoingProcess.set('connectingGlidera', true);
|
||||
glideraService.getEmail(accessToken, function(err, data) {
|
||||
self.glideraLoadingEmail = null;
|
||||
ongoingProcess.set('connectingGlidera', false);
|
||||
self.glideraEmail = data.email;
|
||||
});
|
||||
}
|
||||
if (permissions.personal_info && opts.fullUpdate) {
|
||||
self.glideraLoadingPersonalInfo = 'Getting Glidera Personal Information...';
|
||||
ongoingProcess.set('connectingGlidera', true);
|
||||
glideraService.getPersonalInfo(accessToken, function(err, data) {
|
||||
self.glideraLoadingPersonalInfo = null;
|
||||
ongoingProcess.set('connectingGlidera', false);
|
||||
self.glideraPersonalInfo = data;
|
||||
});
|
||||
}
|
||||
|
|
@ -1142,9 +1142,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
getToken(function(err, accessToken) {
|
||||
if (err || !accessToken) return;
|
||||
else {
|
||||
self.coinbaseLoading = 'Getting primary account...';
|
||||
ongoingProcess.set('Getting primary account...', true);
|
||||
coinbaseService.getAccounts(accessToken, function(err, a) {
|
||||
self.coinbaseLoading = null;
|
||||
ongoingProcess.set('Getting primary account...', false);
|
||||
if (err) {
|
||||
self.coinbaseError = err;
|
||||
if (err.errors[0] && err.errors[0].id == 'expired_token') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue