Minor cleanup for ProManager

This commit is contained in:
Patrick Fic
2024-02-27 11:24:13 -08:00
parent 55ef205907
commit d9020de77b
10 changed files with 132 additions and 80 deletions

View File

@@ -343,19 +343,38 @@ function Header({
icon: <ScheduleOutlined />,
label: <Link to="/manage/production/list">{t('menus.header.productionlist')}</Link>,
},
{
key: 'productionboard',
icon: <Icon component={BsKanban} />,
label: <Link to="/manage/production/board">{t('menus.header.productionboard')}</Link>,
},
{
type: 'divider',
},
{
key: 'scoreboard',
icon: <LineChartOutlined />,
label: <Link to="/manage/scoreboard">{t('menus.header.scoreboard')}</Link>,
},
...(InstanceRenderManager({
imex: true,
rome: true,
promanager: HasFeatureAccess({ featureName: 'visualboard', bodyshop }),
})
? [
{
key: 'productionboard',
icon: <Icon component={BsKanban} />,
label: (
<Link to="/manage/production/board">{t('menus.header.productionboard')}</Link>
),
},
]
: []),
...(InstanceRenderManager({
imex: true,
rome: true,
promanager: HasFeatureAccess({ featureName: 'scoreboard', bodyshop }),
})
? [
{
type: 'divider',
},
{
key: 'scoreboard',
icon: <LineChartOutlined />,
label: <Link to="/manage/scoreboard">{t('menus.header.scoreboard')}</Link>,
},
]
: []),
],
},
{