From f91b791f15a69b515bcbbd15b385e93a4aad1a57 Mon Sep 17 00:00:00 2001 From: Yanick Minder Date: Fri, 28 Jul 2023 14:55:35 +0200 Subject: [PATCH] fix auto close of modal --- frontend/app/components/encryptable-file/form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/encryptable-file/form.js b/frontend/app/components/encryptable-file/form.js index 4036f104f..ec3d0bd77 100644 --- a/frontend/app/components/encryptable-file/form.js +++ b/frontend/app/components/encryptable-file/form.js @@ -88,7 +88,7 @@ export default class Form extends BaseFormComponent { @action abort(byButton) { if (this.args.onAbort && byButton) { - this.args.onAbort(false); + this.args.onAbort(); } } @@ -112,7 +112,7 @@ export default class Form extends BaseFormComponent { } handleSubmitSuccess(savedRecords) { - this.abort(); + this.abort(true); if (!this.args.attachment) { this.saveEditedData(savedRecords); }