Add IPFS inspect button to reimbursements

This commit is contained in:
Râu Cao
2022-12-31 12:20:59 +07:00
parent 0b0dea095f
commit e543708b42
2 changed files with 9 additions and 0 deletions
@@ -2,6 +2,7 @@ import Component from '@glimmer/component';
import { sort } from '@ember/object/computed';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import config from 'kredits-web/config/environment';
export default class ReimbursementListComponent extends Component {
@service kredits;
@@ -9,6 +10,10 @@ export default class ReimbursementListComponent extends Component {
itemSorting = Object.freeze(['pendingStatus:asc', 'id:desc']);
@sort('args.items', 'itemSorting') itemsSorted;
get ipfsGatewayUrl () {
return config.ipfs.gatewayUrl;
}
@action
veto (id) {
this.kredits.vetoReimbursement(id).then(transaction => {