Skip to content

Commit

Permalink
fix auto close of modal
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 authored and TheWalkingLeek committed Jul 28, 2023
1 parent 623779d commit f91b791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/components/encryptable-file/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand All @@ -112,7 +112,7 @@ export default class Form extends BaseFormComponent {
}

handleSubmitSuccess(savedRecords) {
this.abort();
this.abort(true);
if (!this.args.attachment) {
this.saveEditedData(savedRecords);
}
Expand Down

0 comments on commit f91b791

Please sign in to comment.