|
@@ -31,6 +31,7 @@ export class BcInfoComponent implements HsPanelComponent, OnInit {
|
|
|
|
|
|
|
|
selectingArea: boolean = false;
|
|
selectingArea: boolean = false;
|
|
|
buyInProgress: boolean = false;
|
|
buyInProgress: boolean = false;
|
|
|
|
|
+ getUserBalanceInProgress: boolean = false;
|
|
|
|
|
|
|
|
user: string = 'kunickyd@test';
|
|
user: string = 'kunickyd@test';
|
|
|
assetId: string = "coin#test"
|
|
assetId: string = "coin#test"
|
|
@@ -62,7 +63,9 @@ export class BcInfoComponent implements HsPanelComponent, OnInit {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async refreshUserBalance(): Promise<void>{
|
|
async refreshUserBalance(): Promise<void>{
|
|
|
|
|
+ this.getUserBalanceInProgress = true;
|
|
|
this.userBalance = await this.bcInfoService.getUserBalance(this.user, this.userPrivateKey, this.assetId);
|
|
this.userBalance = await this.bcInfoService.getUserBalance(this.user, this.userPrivateKey, this.assetId);
|
|
|
|
|
+ this.getUserBalanceInProgress = false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
isVisible(): boolean {
|
|
isVisible(): boolean {
|