fix: missing sidebar changes

parent 2b770e87
const getSettinUpSidebar = require('./sidebar/settingUp.js') const getSettinUpSidebar = require('./sidebar/settingUp.js')
const getStockSidebar = require('./sidebar/stock.js') const getStockSidebar = require('./sidebar/stock.js')
const getWebsiteSidebar = require('./sidebar/website.js')
module.exports = { module.exports = {
title: 'dokos', title: 'dokos',
...@@ -40,8 +41,9 @@ module.exports = { ...@@ -40,8 +41,9 @@ module.exports = {
lastUpdated: 'Last Updated', lastUpdated: 'Last Updated',
nav: require('./nav/en'), nav: require('./nav/en'),
sidebar: { sidebar: {
'/dokos/setting-up/': getSettinUpSidebar('Setup', 'en'), '/dokos/setting-up/': getSettinUpSidebar('Setup', 'en'),
'/dokos/stocks/': getStockSidebar('Stocks', 'en') '/dokos/stocks/': getStockSidebar('Stocks', 'en'),
'/dokos/website/': getWebsiteSidebar('Website', 'en')
} }
}, },
'/fr/': { '/fr/': {
...@@ -52,8 +54,9 @@ module.exports = { ...@@ -52,8 +54,9 @@ module.exports = {
lastUpdated: 'Dernière mise à jour', lastUpdated: 'Dernière mise à jour',
nav: require('./nav/fr'), nav: require('./nav/fr'),
sidebar: { sidebar: {
'/fr/dokos/installation/': getSettinUpSidebar('Démarrage', 'fr'), '/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 = [ ...@@ -18,6 +18,10 @@ module.exports = [
{ {
text: 'Stocks', text: 'Stocks',
link: '/dokos/stocks/' link: '/dokos/stocks/'
},
{
text: 'Website',
link: '/dokos/website/'
} }
] ]
} }
......
...@@ -15,6 +15,10 @@ module.exports = [ ...@@ -15,6 +15,10 @@ module.exports = [
{ {
text: 'Modules', text: 'Modules',
items: [ items: [
{
text: 'Site web',
link: '/fr/dokos/site-web/'
},
{ {
text: 'Stocks', text: 'Stocks',
link: '/fr/dokos/stocks/' link: '/fr/dokos/stocks/'
......
...@@ -3,7 +3,7 @@ module.exports = function getSidebar (name, lang) { ...@@ -3,7 +3,7 @@ module.exports = function getSidebar (name, lang) {
return [ return [
{ {
title: name, title: name,
collapsable: true, collapsable: false,
children: [ children: [
'', '',
'reservation-articles' 'reservation-articles'
...@@ -15,7 +15,7 @@ module.exports = function getSidebar (name, lang) { ...@@ -15,7 +15,7 @@ module.exports = function getSidebar (name, lang) {
return [ return [
{ {
title: name, title: name,
collapsable: true, collapsable: false,
children: [ children: [
'', '',
'item-booking' '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