Introduce budget, reimbursements for expenses #195

Merged
raucao merged 57 commits from feature/expenses into master 2021-06-03 14:23:45 +00:00
Showing only changes of commit 326d46b1a1 - Show all commits
+11 -1
View File
@@ -18,8 +18,18 @@ export default class AddReimbursementComponent extends Component {
@tracked expenses = A([]);
@tracked expenseFormVisible = true;
get isValidTotal () {
const amount = parseFloat(this.total);
if (Number.isNaN(amount)) {
return false;
} else {
return amount > 0;
}
}
get submitButtonEnabled () {
return this.expenses.length > 0;
return this.isValidTotal &&
(this.expenses.length > 0);
}
get submitButtonDisabled () {