From b58870a03cfba42b58d7e77b8beec9ca8db0f360 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sat, 31 Oct 2020 13:05:40 +0100 Subject: [PATCH] Octanify add-reimbursement syntax Fixes linter errors --- app/components/add-reimbursement/component.js | 5 ++ app/components/add-reimbursement/template.hbs | 46 ++++++++++--------- 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/app/components/add-reimbursement/component.js b/app/components/add-reimbursement/component.js index a379a28..ca2c5a4 100644 --- a/app/components/add-reimbursement/component.js +++ b/app/components/add-reimbursement/component.js @@ -84,6 +84,11 @@ export default class AddReimbursementComponent extends Component { this.total = btcAmount.toFixed(8); } + @action + updateContributor(event) { + this.contributorId = event.target.value; + } + @action showExpenseForm () { this.expenseFormVisible = true; diff --git a/app/components/add-reimbursement/template.hbs b/app/components/add-reimbursement/template.hbs index 314460a..7360686 100644 --- a/app/components/add-reimbursement/template.hbs +++ b/app/components/add-reimbursement/template.hbs @@ -1,8 +1,8 @@ -
+ @@ -58,13 +58,15 @@ {{fmt-fiat-currency expense.amount expense.currency}}
- +
{{/each}}

- +

{{else}}

No line items yet.

@@ -72,11 +74,11 @@

{{#if this.inProgress}} - {{input type="submit" value="Submitting..." disabled=true - title="Submit/propose this reimbursement"}} + {{else}} - {{input type="submit" value="Submit" disabled=this.submitButtonDisabled - title="Submit/propose this reimbursement"}} + {{/if}}