diff --git a/src/main/client/app/layouts/error-layout.vue b/src/main/client/app/layouts/error-layout.vue new file mode 100644 index 000000000..41fcfca6c --- /dev/null +++ b/src/main/client/app/layouts/error-layout.vue @@ -0,0 +1,13 @@ + + + diff --git a/src/main/client/app/layouts/index.js b/src/main/client/app/layouts/index.js index a173db033..9d153e8e1 100644 --- a/src/main/client/app/layouts/index.js +++ b/src/main/client/app/layouts/index.js @@ -1 +1,2 @@ +export { default as AppErrorLayout } from './error-layout.vue'; export { default as AppNoneLayout } from './none-layout.vue'; diff --git a/src/main/client/app/main.js b/src/main/client/app/main.js index 1516d2eb9..18ff874ff 100644 --- a/src/main/client/app/main.js +++ b/src/main/client/app/main.js @@ -4,7 +4,10 @@ import { Multiselect } from 'vue-multiselect'; import fontawesomeConfig from '@/shared/config/fontawesome-config'; import bootstrapVueConfig from '@/shared/config/bootstrap-vue-config'; -import { AppNoneLayout } from '@/layouts'; +import { + AppErrorLayout, + AppNoneLayout, +} from '@/layouts'; import App from '@/app.vue'; import router from '@/router'; import store from '@/shared/store'; @@ -14,6 +17,7 @@ bootstrapVueConfig.init(); Vue.use(Multiselect); // layout definitions +Vue.component('app-error-layout', AppErrorLayout); Vue.component('app-none-layout', AppNoneLayout); Vue.config.productionTip = false; diff --git a/src/main/client/app/router.js b/src/main/client/app/router.js index 74b221461..6b06419fc 100644 --- a/src/main/client/app/router.js +++ b/src/main/client/app/router.js @@ -27,11 +27,13 @@ const appRoutes = [ path: '/not-found', name: 'page-not-found', component: AppPageNotFound, + meta: { layout: 'error' }, }, { path: '/forbidden', name: 'page-forbidden', component: AppPageForbidden, + meta: { layout: 'error' }, }, ]; diff --git a/src/main/client/app/shared/components/page-forbidden.vue b/src/main/client/app/shared/components/page-forbidden.vue index b378ac020..04892607f 100644 --- a/src/main/client/app/shared/components/page-forbidden.vue +++ b/src/main/client/app/shared/components/page-forbidden.vue @@ -1,24 +1,22 @@ diff --git a/src/main/client/app/shared/components/page-not-found.vue b/src/main/client/app/shared/components/page-not-found.vue index e71f5e859..02f0655c2 100644 --- a/src/main/client/app/shared/components/page-not-found.vue +++ b/src/main/client/app/shared/components/page-not-found.vue @@ -1,24 +1,22 @@