From cf0a53357cd1893977e528821d1b6c1640086382 Mon Sep 17 00:00:00 2001 From: DrumsnChocolate Date: Tue, 5 Nov 2024 23:07:10 +0100 Subject: [PATCH] apply prevent-default for more occurrences of {{on 'submit'}} --- app/controllers/login.js | 4 +--- app/templates/debit/collections/collection/edit.hbs | 2 +- app/templates/login.hbs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/controllers/login.js b/app/controllers/login.js index 31558399e..fa28c31b2 100644 --- a/app/controllers/login.js +++ b/app/controllers/login.js @@ -14,9 +14,7 @@ export default class LoginController extends Controller { @tracked twoFactorRequired; @action - async authenticate(e) { - e.preventDefault(); - + async authenticate() { const headers = {}; if (this.twoFactorRequired) { headers['X-Amber-OTP'] = this.verificationCode; diff --git a/app/templates/debit/collections/collection/edit.hbs b/app/templates/debit/collections/collection/edit.hbs index 927b79b51..8d3315a46 100644 --- a/app/templates/debit/collections/collection/edit.hbs +++ b/app/templates/debit/collections/collection/edit.hbs @@ -3,7 +3,7 @@
{{if @model.isNew 'Incasso aanmaken' 'Incasso wijzigen'}}
-
+
- +
{{#if errorMessage}}