Adds loading indicator while getting buy/sell prices
This commit is contained in:
parent
6edbfad1ea
commit
7934eca099
4 changed files with 16 additions and 4 deletions
|
|
@ -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.');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue