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'; ...@@ -2,13 +2,26 @@ import MediaManager from './components/MediaManager.vue';
import MediaList from './components/MediaList.vue'; import MediaList from './components/MediaList.vue';
import MediaForm from './components/MediaForm.vue'; import MediaForm from './components/MediaForm.vue';
const locales = window.AsgardCMS.locales;
export default [ export default [
{ {
path: '/media/media', path: '/media/media',
component: MediaManager, component: MediaManager,
children: [ 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