From 3254b601b5c15845d5dfc8f7ee595cf5121668fc Mon Sep 17 00:00:00 2001 From: Hristiyan Date: Mon, 20 Jan 2025 11:46:02 +0200 Subject: [PATCH 1/9] fix: form submission Signed-off-by: Hristiyan --- .../renderer/components/Approvers/ApproverModal.vue | 6 ++---- .../components/ComplexKey/ComplexKeyModal.vue | 6 ++---- .../components/ComplexKey/ComplexKeySaveKeyModal.vue | 5 ++--- .../ComplexKey/ComplexKeySelectAccountModal.vue | 6 ++---- .../ComplexKey/ComplexKeySelectSavedKey.vue | 12 ++++-------- .../DataMigration/DecryptMnemonicPhrase.vue | 5 ++--- .../src/renderer/components/ForgotPasswordModal.vue | 6 ++---- .../ImportEncrypted/components/DecryptKeyModal.vue | 5 ++--- .../components/SelectEncryptedKeysModal.vue | 5 ++--- .../components/Organization/AddOrSelectModal.vue | 4 +--- .../components/Organization/AddOrganizationModal.vue | 6 ++---- .../Organization/OrganizationStatusModal.vue | 6 ++---- .../Organization/SelectOrganizationModal.vue | 6 ++---- .../components/Organization/UserSelectModal.vue | 6 ++---- .../src/renderer/components/UserPasswordModal.vue | 5 ++--- .../components/modals/UpdateNicknameModal.vue | 6 ++---- .../pages/AccountSetup/components/NewPassword.vue | 6 ++---- .../LinkExistingAccount/LinkExistingAccount.vue | 6 ++---- .../pages/ContactList/SignUpUser/SignUpUser.vue | 6 ++---- .../Files/LinkExistingFile/LinkExistingFile.vue | 6 ++---- .../Migrate/components/DecryptRecoveryPhraseForm.vue | 6 ++---- .../pages/Migrate/components/SetupPersonal.vue | 2 +- .../pages/Settings/components/WorkGroupsTab.vue | 6 ++---- 23 files changed, 46 insertions(+), 87 deletions(-) diff --git a/front-end/src/renderer/components/Approvers/ApproverModal.vue b/front-end/src/renderer/components/Approvers/ApproverModal.vue index 1933e43c7..f318f0835 100644 --- a/front-end/src/renderer/components/Approvers/ApproverModal.vue +++ b/front-end/src/renderer/components/Approvers/ApproverModal.vue @@ -58,9 +58,7 @@ const handleApproverUpdate = (newApprover: TransactionApproverDto) => const handleSingleApproverUpdate = (newApprover: TransactionApproverDto[]) => (currentSingleApprover.value = newApprover); -const handleDoneClick = async (e: Event) => { - e.preventDefault(); - +const handleDoneClick = async () => { if (currentApproverInvalid.value) { errorModalShow.value = true; return; @@ -172,7 +170,7 @@ const modalContentContainerStyle = { padding: '0 10%', height: '80%' };