Skip to content
Snippets Groups Projects
Commit 672dcdd7 authored by Hermann's avatar Hermann
Browse files

load event view after edit is finished

parent ad5b30d8
No related merge requests found
...@@ -9,7 +9,7 @@ export default class EventModal { ...@@ -9,7 +9,7 @@ export default class EventModal {
view() { view() {
if (this.edit) { if (this.edit) {
return m(newEvent); return m(newEvent, { onfinish: () => { this.edit = false; m.redraw(); } });
} }
return m(viewEvent, { onEdit: () => { this.edit = true; } }); return m(viewEvent, { onEdit: () => { this.edit = true; } });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment