Format js object, set the locales prop to the media form used for language tabs

parent 9aeb465b
......@@ -2,13 +2,26 @@ import MediaManager from './components/MediaManager.vue';
import MediaList from './components/MediaList.vue';
import MediaForm from './components/MediaForm.vue';
const locales = window.AsgardCMS.locales;
export default [
{
path: '/media/media',
component: MediaManager,
children: [
{ path: '', component: MediaList, name: 'admin.media.media.index' },
{ path: ':mediaId/edit', component: MediaForm, name: 'admin.media.media.edit', },
{
path: '',
component: MediaList,
name: 'admin.media.media.index'
},
{
path: ':mediaId/edit',
component: MediaForm,
name: 'admin.media.media.edit',
props: {
locales,
}
},
]
}
];
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