Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/components/forms/admin/settings/billing.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export default class Billing extends Component.extend(FormMixin) {
}

@action
submit() {
submit(e) {
e.preventDefault();
this.onValid(() => {
this.save();
});
Expand Down
4 changes: 2 additions & 2 deletions app/templates/components/forms/admin/settings/billing.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form class="ui form" {{action 'submit' on='submit'}}>
<form class="ui form">
<h3 class="ui header">
{{t 'Invoice Handling'}}
</h3>
Expand Down Expand Up @@ -88,5 +88,5 @@
<label for="adminBillingAdditionalInfo">{{t 'Additional Info'}}</label>
<Input @type="text" @id="adminBillingAdditionalInfo" @value={{this.model.adminBillingAdditionalInfo}} />
</div>
<button class="ui teal button" type="submit" name="submit">{{t 'Save'}}</button>
<button class="ui teal button" type="button" name="submit" onclick={{action "submit"}}>{{t 'Save'}}</button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be needed, just type="submit" should do

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keeping it to submit that is triggering twice

</form>