diff --git a/client/src/components/content-block-form/ContentBlockForm.vue b/client/src/components/content-block-form/ContentBlockForm.vue index d8f2504d..8317c80b 100644 --- a/client/src/components/content-block-form/ContentBlockForm.vue +++ b/client/src/components/content-block-form/ContentBlockForm.vue @@ -95,9 +95,10 @@ @click="addBlock(outer)" /> - - - @@ -307,15 +308,32 @@ }; + + diff --git a/client/src/layouts/DefaultLayout.vue b/client/src/layouts/DefaultLayout.vue index 967c38ae..2d10ec7c 100644 --- a/client/src/layouts/DefaultLayout.vue +++ b/client/src/layouts/DefaultLayout.vue @@ -45,7 +45,15 @@ }, specialContainerClass() { let cls = this.$store.state.specialContainerClass; - return [cls ? `layout--${cls}` : '', {'skillbox--show-filter': this.showFilter}]; + let metaClass = this.$route.meta.pageClass; + let classes = [{'skillbox--show-filter': this.showFilter}]; + if(cls) { + classes.push(`layout--${cls}`); + } + if(metaClass) { + classes.push(`layout--${metaClass}`); + } + return classes; }, enableFooter() { return enableFooter() && (!this.$route.meta || !this.$route.meta.hideFooter); diff --git a/client/src/router/module.routes.js b/client/src/router/module.routes.js index 0ffe6c17..3f38ffdb 100644 --- a/client/src/router/module.routes.js +++ b/client/src/router/module.routes.js @@ -1,12 +1,13 @@ import { + CREATE_CONTENT_BLOCK_AFTER_PAGE, + CREATE_CONTENT_BLOCK_UNDER_PARENT_PAGE, + EDIT_CONTENT_BLOCK_PAGE, MODULE_PAGE, MODULE_SETTINGS_PAGE, SNAPSHOT_DETAIL, SNAPSHOT_LIST, SUBMISSIONS_PAGE, VISIBILITY_PAGE, - CREATE_CONTENT_BLOCK_AFTER_PAGE, - CREATE_CONTENT_BLOCK_UNDER_PARENT_PAGE, EDIT_CONTENT_BLOCK_PAGE, } from '@/router/module.names'; import {LAYOUT_SIMPLE} from '@/router/core.constants'; import createContentBlock from '@/pages/createContentBlock'; @@ -21,15 +22,16 @@ const snapshots = () => import(/* webpackChunkName: "modules" */'@/pages/snapsho const snapshot = () => import(/* webpackChunkName: "modules" */'@/pages/snapshot/snapshot'); const contentBlockFormMeta = { - // layout: LAYOUT_SIMPLE, - hideFooter: true, - hideHeader: true, - showSubNavigation: true - }; + // layout: LAYOUT_SIMPLE, + hideFooter: true, + hideHeader: true, + showSubNavigation: true, + pageClass: 'no-scroll', +}; const createContentBlockRouteFragment = { component: createContentBlock, meta: contentBlockFormMeta, - props: true + props: true, }; export default [ @@ -93,7 +95,7 @@ export default [ meta: contentBlockFormMeta, props: true, component: editContentBlock, - name: EDIT_CONTENT_BLOCK_PAGE + name: EDIT_CONTENT_BLOCK_PAGE, }, { ...createContentBlockRouteFragment, @@ -104,7 +106,7 @@ export default [ ...createContentBlockRouteFragment, path: 'add-under-parent/:parent', name: CREATE_CONTENT_BLOCK_UNDER_PARENT_PAGE, - } + }, ], }, ];