diff --git a/layout-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties b/layout-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties index 74b2fbbf5..091f3b892 100644 --- a/layout-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties +++ b/layout-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties @@ -61,7 +61,7 @@ layout.topRight=Top-Right layout.topLeft=Top-Left layout.bottomRight=Bottom-Right layout.bottomLeft=Bottom-Left -layout.selectSectionType=Select Section Type +layout.chooseATemplate=Choose a template layout.fixedSectionTypeChoice=Fixed Section layout.dynamicSectionTypeChoice=Dynamic Section layout.addApplicationButton=Add Application @@ -196,6 +196,8 @@ portlets.label.category.system.noDelete=Product categories cannot be deleted portlets.label.openIllustrationPreview=Open Preview layout.add=Add +layout.create=Create +layout.use=Use layout.preview=Preview layout.previewDraftPage=Save draft and preview page layout.portletInstance.MembersPortlet.name=Members @@ -400,3 +402,6 @@ sectionTemplates.label.category.blank=Blank sectionTemplates.label.category.custom=Custom layout.editSectionTemplate=Edit Template sectionTemplates.label.duplicate=Duplicate +layout.section.category.blank=Blank Templates +layout.section.category.default=Default Templates +layout.section.category.custom=Customized Templates diff --git a/layout-webapp/src/main/webapp/vue-app/layout-editor/components/content/Content.vue b/layout-webapp/src/main/webapp/vue-app/layout-editor/components/content/Content.vue index 1eec81c2b..a089799d9 100644 --- a/layout-webapp/src/main/webapp/vue-app/layout-editor/components/content/Content.vue +++ b/layout-webapp/src/main/webapp/vue-app/layout-editor/components/content/Content.vue @@ -337,6 +337,8 @@ export default { const parentContainer = this.$layoutUtils.getParentContainer(this.layoutToEdit); this.addSectionVersion(section.storageId); parentContainer.children.splice(index || 0, 0, section); + this.$layoutUtils.parseSections(this.layoutToEdit); + this.saveDraft(); }, handleRemoveSection(index) { const parentContainer = this.$layoutUtils.getParentContainer(this.layoutToEdit); diff --git a/layout-webapp/src/main/webapp/vue-app/layout-editor/components/drawer/AddSectionDrawer.vue b/layout-webapp/src/main/webapp/vue-app/layout-editor/components/drawer/AddSectionDrawer.vue index 2547c8382..882a2fec8 100644 --- a/layout-webapp/src/main/webapp/vue-app/layout-editor/components/drawer/AddSectionDrawer.vue +++ b/layout-webapp/src/main/webapp/vue-app/layout-editor/components/drawer/AddSectionDrawer.vue @@ -8,6 +8,7 @@ modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -23,39 +24,59 @@ ref="drawer" id="addSectionDrawer" v-model="drawer" + :loading="loading" right disable-pull-to-refresh> -