Prevent unsaved changes on page builder save and close
This commit is contained in:
@@ -892,6 +892,8 @@ export default {
|
||||
return { page, layout }
|
||||
})
|
||||
}).then(async ({ page, layout }) => {
|
||||
this.unsavedBlocks.clear()
|
||||
|
||||
if (closeOnSuccess) {
|
||||
this.$router.push(this.previousPage || { name: 'admin.pages' })
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user