fix: missing sidebar changes

parent 2b770e87
const getSettinUpSidebar = require('./sidebar/settingUp.js')
const getStockSidebar = require('./sidebar/stock.js')
const getWebsiteSidebar = require('./sidebar/website.js')
module.exports = {
title: 'dokos',
......@@ -41,7 +42,8 @@ module.exports = {
nav: require('./nav/en'),
sidebar: {
'/dokos/setting-up/': getSettinUpSidebar('Setup', 'en'),
'/dokos/stocks/': getStockSidebar('Stocks', 'en')
'/dokos/stocks/': getStockSidebar('Stocks', 'en'),
'/dokos/website/': getWebsiteSidebar('Website', 'en')
}
},
'/fr/': {
......@@ -53,7 +55,8 @@ module.exports = {
nav: require('./nav/fr'),
sidebar: {
'/fr/dokos/installation/': getSettinUpSidebar('Démarrage', 'fr'),
'/fr/dokos/stocks/': getStockSidebar('Stocks', 'fr')
'/fr/dokos/stocks/': getStockSidebar('Stocks', 'fr'),
'/fr/dokos/site-web/': getWebsiteSidebar('Site web', 'fr')
}
}
}
......
......@@ -18,6 +18,10 @@ module.exports = [
{
text: 'Stocks',
link: '/dokos/stocks/'
},
{
text: 'Website',
link: '/dokos/website/'
}
]
}
......
......@@ -15,6 +15,10 @@ module.exports = [
{
text: 'Modules',
items: [
{
text: 'Site web',
link: '/fr/dokos/site-web/'
},
{
text: 'Stocks',
link: '/fr/dokos/stocks/'
......
......@@ -3,7 +3,7 @@ module.exports = function getSidebar (name, lang) {
return [
{
title: name,
collapsable: true,
collapsable: false,
children: [
'',
'reservation-articles'
......@@ -15,7 +15,7 @@ module.exports = function getSidebar (name, lang) {
return [
{
title: name,
collapsable: true,
collapsable: false,
children: [
'',
'item-booking'
......
module.exports = function getSidebar (name, lang) {
if (lang === 'fr') {
return [
{
title: name,
collapsable: false,
sidebarDepth: 2,
children: [
'',
'formulaire-web'
]
}
]
}
return [
{
title: name,
collapsable: false,
sidebarDepth: 2,
children: [
'',
'web-form'
]
}
]
}
\ No newline at end of file
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