Skip to content

Commit

Permalink
Remove the need to send translations as a prop
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 16, 2017
1 parent faf356f commit 96294d2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Modules/Page/Assets/js/PageRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,30 @@ 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 [
{
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',
}
},
{
path: '/page/pages/:pageId/edit',
name: 'admin.page.page.edit',
component: PageForm,
props: {
translations,
locales,
pageTitle: 'edit page',
pageTitle: 'edit-page',
}
},
];

0 comments on commit 96294d2

Please sign in to comment.