Move reimbursement items to separate component

This commit is contained in:
2024-03-07 16:48:37 +01:00
parent bcdd033f34
commit 4bd6bc8269
4 changed files with 55 additions and 48 deletions
@@ -0,0 +1,19 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import config from 'kredits-web/config/environment';
export default class ReimbursementItemComponent extends Component {
@service kredits;
get ipfsGatewayUrl () {
return config.ipfs.gatewayUrl;
}
@action
veto (id) {
this.kredits.vetoReimbursement(id).then(transaction => {
console.debug('[controllers:budget] Veto submitted to chain: '+transaction.hash);
});
}
}