Skip to content
Snippets Groups Projects
Verified Commit fd5c9af7 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge remote-tracking branch...

Merge remote-tracking branch 'origin/894-dialogobjectform-does-not-clear-fields-on-successful-creation' into refactor/calendar-overview
parents 98f4081e a0e1eadf
No related branches found
No related tags found
1 merge request!1304Refactor calendar overview in more different components
Pipeline #140280 failed
......@@ -226,13 +226,17 @@ export default {
messageKey: snackbarTextKey,
color: "success",
});
this.resetModel();
},
resetModel() {
this.itemModel = JSON.parse(
JSON.stringify(this.isCreate ? this.defaultItem : this.editItem)
);
},
updateModel() {
// Only update the model if the dialog is hidden or has just been mounted
if (this.forceModelItemUpdate || !this.firstInitDone || !this.dialog) {
this.itemModel = JSON.parse(
JSON.stringify(this.isCreate ? this.defaultItem : this.editItem)
);
this.resetModel();
}
},
},
......
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