File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -384,12 +384,19 @@ export default {
384384 this .$refs .popover .$children [0 ].$refs .popper .init ()
385385 },
386386 /**
387- * Save changes and return to viewing mode or stay in editing mode if an error occurrs
387+ * Save changes and leave when creating a new event or return to viewing mode when editing
388+ * an existing event. Stay in editing mode if an error occurrs.
388389 *
389390 * @param {boolean} thisAndAllFuture Modify this and all future events
390391 * @return {Promise<void>}
391392 */
392393 async saveAndView (thisAndAllFuture ) {
394+ // Transitioning from new to edit routes is not implemented for now
395+ if (this .isNew ) {
396+ await this .saveAndLeave (thisAndAllFuture)
397+ return
398+ }
399+
393400 this .isViewing = true
394401 try {
395402 await this .save (thisAndAllFuture)
You can’t perform that action at this time.
0 commit comments