Skip to content

Commit

Permalink
fix issue with dialog showing up when saving-and-exiting intro/outro …
Browse files Browse the repository at this point in the history
…of a meeting
  • Loading branch information
elpoelma committed Jun 11, 2024
1 parent eaa66f6 commit 5f0f9eb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-carpets-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'frontend-gelinkt-notuleren': patch
---

Ensure that exiting dialog does not show up when saving and exiting the intro/outro of a meeting
5 changes: 5 additions & 0 deletions app/controllers/meetings/edit/intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default class MeetingsEditIntroController extends Controller {
this.editor = editor;
}

clearEditor() {
this.editor = null;
}

@action
closeModal() {
this.router.transitionTo('meetings.edit');
Expand All @@ -38,5 +42,6 @@ export default class MeetingsEditIntroController extends Controller {
const zitting = this.model;
zitting.intro = this.editor.htmlContent;
await zitting.save();
this.clearEditor();
});
}
5 changes: 5 additions & 0 deletions app/controllers/meetings/edit/outro.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export default class MeetingsEditOutroController extends Controller {
this.editor = editor;
}

clearEditor() {
this.editor = null;
}

@action
closeModal() {
this.router.transitionTo('meetings.edit');
Expand All @@ -37,5 +41,6 @@ export default class MeetingsEditOutroController extends Controller {
const zitting = this.model;
zitting.outro = this.editor.htmlContent;
await zitting.save();
this.clearEditor();
});
}

0 comments on commit 5f0f9eb

Please sign in to comment.