WIP Basic reimbursement lists
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import Component from '@glimmer/component';
|
||||
import { sort } from '@ember/object/computed';
|
||||
|
||||
export default class ReimbursementListComponent extends Component {
|
||||
itemSorting = Object.freeze(['id:desc']);
|
||||
@sort('args.items', 'itemSorting') itemsSorted;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<ul class="item-list">
|
||||
{{#each this.itemsSorted as |reimbursement|}}
|
||||
<li>
|
||||
{{reimbursement.id}}<br>
|
||||
{{reimbursement.amount}} WBTC<br>
|
||||
vetoed: {{reimbursement.vetoed}}<br>
|
||||
pay out to: {{reimbursement.contributor.name}}<br>
|
||||
|
||||
{{#each reimbursement.expenses as |expense|}}
|
||||
{{expense.date}}: {{expense.title}}
|
||||
{{/each}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user