Adds loading indicator while getting buy/sell prices

This commit is contained in:
Gustavo Maximiliano Cortez 2015-09-09 15:24:47 -03:00
commit 7934eca099
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 16 additions and 4 deletions

View file

@ -15,7 +15,9 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
this.buyPrice = null;
return;
}
this.gettingBuyPrice = true;
glideraService.buyPrice(token, price, function(err, buyPrice) {
self.gettingBuyPrice = false;
if (err) {
self.error = gettext('Could not get exchange information. Please, try again.');
}

View file

@ -19,7 +19,9 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
this.sellPrice = null;
return;
}
this.gettingSellPrice = true;
glideraService.sellPrice(token, price, function(err, sellPrice) {
self.gettingSellPrice = false;
if (err) {
self.error = gettext('Could not get exchange information. Please, try again.');
}