Merge branch '2023.3.x-bugfix-layout-copy-issue' into 2023.3.x
This commit is contained in:
@@ -772,16 +772,16 @@ export default {
|
||||
this.processing = true
|
||||
|
||||
const layout = {
|
||||
...this.layout,
|
||||
...this.layout.clone(),
|
||||
handle: '',
|
||||
weight: this.layouts.length + 1,
|
||||
}
|
||||
|
||||
layout.meta.title = `${layout.meta.title}`
|
||||
layout.meta.title = `${this.$t('copyOf')}${layout.meta.title}`
|
||||
|
||||
this.createPageLayout(this.layout).then(({ layoutID }) => {
|
||||
this.createPageLayout(layout).then(({ pageLayoutID }) => {
|
||||
return this.fetchPageLayouts().then(() => {
|
||||
this.switchLayout(layoutID)
|
||||
this.switchLayout(pageLayoutID)
|
||||
this.toastSuccess(this.$t('notification:page.page-layout.clone.success'))
|
||||
})
|
||||
}).finally(() => {
|
||||
|
||||
@@ -106,7 +106,7 @@ page:
|
||||
success: Layout saved
|
||||
failed: Failed to save layout
|
||||
clone:
|
||||
success: Layout created
|
||||
success: Layout cloned and selected
|
||||
failed: Failed to clone layout
|
||||
delete:
|
||||
success: Layout deleted
|
||||
|
||||
Reference in New Issue
Block a user