From 96294d2ebe09433f946c1a8ca276f553768a3fb7 Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Sat, 16 Sep 2017 16:15:30 +0200 Subject: [PATCH] Remove the need to send translations as a prop --- Modules/Page/Assets/js/PageRoutes.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Modules/Page/Assets/js/PageRoutes.js b/Modules/Page/Assets/js/PageRoutes.js index 7057fc6ce..c8f407840 100644 --- a/Modules/Page/Assets/js/PageRoutes.js +++ b/Modules/Page/Assets/js/PageRoutes.js @@ -2,7 +2,6 @@ import PageTable from './components/PageTable.vue' import PageTableServerSide from './components/PageTableServerSide.vue' import PageForm from './components/PageForm.vue' -const translations = window.translations; const locales = window.locales; export default [ @@ -10,18 +9,14 @@ export default [ path: '/page/pages', name: 'admin.page.page.index', component: PageTableServerSide, - props: { - translations, - } }, { path: '/page/pages/create', name: 'admin.page.page.create', component: PageForm, props: { - translations, locales, - pageTitle: 'create page', + pageTitle: 'create-page', } }, { @@ -29,9 +24,8 @@ export default [ name: 'admin.page.page.edit', component: PageForm, props: { - translations, locales, - pageTitle: 'edit page', + pageTitle: 'edit-page', } }, ];