3
0

Merge branch '2023.3.x-bugfix-layout-copy-issue' into 2023.3.x

This commit is contained in:
Jože Fortun
2023-05-30 16:01:42 +02:00
2 changed files with 5 additions and 5 deletions
@@ -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