Hide veto button for confirmed reimbursements

This commit is contained in:
2024-03-07 17:04:50 +01:00
parent 53f13e4a63
commit af309ff682
2 changed files with 13 additions and 1 deletions
@@ -10,6 +10,18 @@ export default class ReimbursementItemComponent extends Component {
return config.ipfs.gatewayUrl;
}
get isConfirmed () {
return (this.args.reimbursement.confirmedAt - this.kredits.currentBlock) <= 0;
}
get isUnconfirmed () {
return !this.isConfirmed;
}
get showVetoButton () {
return this.isUnconfirmed && this.kredits.currentUserIsCore;
}
@action
veto (id) {
this.kredits.vetoReimbursement(id).then(transaction => {