put loading flag back in; readded click on denomination selection
This commit is contained in:
parent
82d5641468
commit
a345269a8d
@ -67,4 +67,4 @@
|
||||
"node": ">=8"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,6 +16,6 @@
|
||||
|
||||
<ion-item *ngFor="let unit of units">
|
||||
<ion-label color="dark">{{ unit }}</ion-label>
|
||||
<ion-radio value="{{ unit }}"></ion-radio>
|
||||
<ion-radio value="{{ unit }}" (click)="close()"></ion-radio>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
|
||||
@ -17,12 +17,12 @@ export class CurrencyProvider {
|
||||
public factor: number = 1;
|
||||
private bitstamp: number;
|
||||
private kraken: number;
|
||||
private loading: boolean;
|
||||
|
||||
constructor(public http: Http, private api: ApiProvider) {
|
||||
// TODO Make this an API call
|
||||
this.defaultCurrency = 'BTC';
|
||||
this.currencySymbol = this.defaultCurrency;
|
||||
|
||||
}
|
||||
|
||||
public roundFloat(aFloat: number, decimalPlaces: number): number {
|
||||
@ -87,9 +87,11 @@ export class CurrencyProvider {
|
||||
} else if (currencyParsed.data.kraken) {
|
||||
this.factor = this.kraken = currencyParsed.data.kraken;
|
||||
}
|
||||
this.loading = false;
|
||||
},
|
||||
(err) => {
|
||||
console.log('err is', err);
|
||||
this.loading = false;
|
||||
console.error('err getting currency', err);
|
||||
}
|
||||
);
|
||||
} else if (currency === 'm' + this.defaultCurrency) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user