Allow to veto reimbursements

This commit is contained in:
Râu Cao
2022-12-30 22:26:32 +07:00
parent ca1ccf6d93
commit c7eb81450c
4 changed files with 50 additions and 10 deletions
+13 -2
View File
@@ -3,8 +3,12 @@
<li data-reimbursement-id={{reimbursement.id}}
class="{{item-status reimbursement}}">
<p class="meta">
<span class="recipient"><UserAvatar @contributor={{reimbursement.contributor}} /></span>
<span class="title">Expenses covered by {{reimbursement.contributor.name}}</span>
<span class="title">
Expenses covered by {{reimbursement.contributor.name}}
</span>
<span class="recipient">
<UserAvatar @contributor={{reimbursement.contributor}} />
</span>
</p>
<p class="token-amount">
<span class="amount">
@@ -26,6 +30,13 @@
</li>
{{/each}}
</ul>
{{#if this.kredits.currentUserIsCore}}
<p>
<button {{on "click" (fn this.veto reimbursement.id)}}
disabled={{reimbursement.vetoed}}
class="button small danger">veto</button>
</p>
{{/if}}
</li>
{{/each}}
</ul>