Use new balance APIs from akkounts
* Use sats integer values instead of floats * Add lightning Network account balance * Use icons and titles/descriptions to discern between balance types * Use more flexible config for balances (to add e.g. RBTC or BTC ecash later)
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import Component from '@glimmer/component';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { alias } from '@ember/object/computed';
|
||||
|
||||
export default class BudgetBalancesComponent extends Component {
|
||||
@service communityFunds;
|
||||
@alias('communityFunds.balances') balances;
|
||||
|
||||
get balancesSorted () {
|
||||
return this.communityFunds.balances
|
||||
.sortBy('confirmed_balance').reverse();
|
||||
}
|
||||
|
||||
get loading () {
|
||||
return !this.communityFunds.balancesLoaded;
|
||||
|
||||
Reference in New Issue
Block a user