Remove obsolete property from class and template
Co-authored-by: Garret Alfert <alfert@wevelop.de>
This commit is contained in:
@@ -29,14 +29,6 @@ export default class AddExpenseItemComponent extends Component {
|
|||||||
return this.isValidTotal ? 'valid' : '';
|
return this.isValidTotal ? 'valid' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
get submitButtonEnabled () {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
get submitButtonDisabled () {
|
|
||||||
return !this.submitButtonEnabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
validateForm () {
|
validateForm () {
|
||||||
const formEl = document.querySelector('form#add-expense-item');
|
const formEl = document.querySelector('form#add-expense-item');
|
||||||
const inputFields = formEl.querySelectorAll('input');
|
const inputFields = formEl.querySelectorAll('input');
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<p class="actions">
|
<p class="actions">
|
||||||
<Input @type="submit" @value="Add" @disabled={{this.submitButtonDisabled}}
|
<Input @type="submit" @value="Add" @class="green"
|
||||||
@class="green" @title="Add item to reimbursement" />
|
@title="Add item to reimbursement" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
Reference in New Issue
Block a user