Remove the need to send translations as a prop

parent faf356ff
...@@ -2,7 +2,6 @@ import PageTable from './components/PageTable.vue' ...@@ -2,7 +2,6 @@ import PageTable from './components/PageTable.vue'
import PageTableServerSide from './components/PageTableServerSide.vue' import PageTableServerSide from './components/PageTableServerSide.vue'
import PageForm from './components/PageForm.vue' import PageForm from './components/PageForm.vue'
const translations = window.translations;
const locales = window.locales; const locales = window.locales;
export default [ export default [
...@@ -10,18 +9,14 @@ export default [ ...@@ -10,18 +9,14 @@ export default [
path: '/page/pages', path: '/page/pages',
name: 'admin.page.page.index', name: 'admin.page.page.index',
component: PageTableServerSide, component: PageTableServerSide,
props: {
translations,
}
}, },
{ {
path: '/page/pages/create', path: '/page/pages/create',
name: 'admin.page.page.create', name: 'admin.page.page.create',
component: PageForm, component: PageForm,
props: { props: {
translations,
locales, locales,
pageTitle: 'create page', pageTitle: 'create-page',
} }
}, },
{ {
...@@ -29,9 +24,8 @@ export default [ ...@@ -29,9 +24,8 @@ export default [
name: 'admin.page.page.edit', name: 'admin.page.page.edit',
component: PageForm, component: PageForm,
props: { props: {
translations,
locales, locales,
pageTitle: 'edit page', pageTitle: 'edit-page',
} }
}, },
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment