Alteração nos itens de menu do esquerdo do layout. Dashboard e Conexões foi disponibilizado apenas para o administrador

pull/1/head
adriano 2022-01-06 08:08:43 -03:00
parent 0cc863139d
commit 605a33751b
1 changed files with 19 additions and 14 deletions

View File

@ -72,20 +72,8 @@ const MainListItems = (props) => {
return (
<div onClick={drawerClose}>
<ListItemLink
to="/"
primary="Dashboard"
icon={<DashboardOutlinedIcon />}
/>
<ListItemLink
to="/connections"
primary={i18n.t("mainDrawer.listItems.connections")}
icon={
<Badge badgeContent={connectionWarning ? "!" : 0} color="error">
<SyncAltIcon />
</Badge>
}
/>
<ListItemLink
to="/tickets"
primary={i18n.t("mainDrawer.listItems.tickets")}
@ -121,6 +109,23 @@ const MainListItems = (props) => {
primary={i18n.t("mainDrawer.listItems.queues")}
icon={<AccountTreeOutlinedIcon />}
/>
<ListItemLink
to="/connections"
primary={i18n.t("mainDrawer.listItems.connections")}
icon={
<Badge badgeContent={connectionWarning ? "!" : 0} color="error">
<SyncAltIcon />
</Badge>
}
/>
<ListItemLink
to="/"
primary="Dashboard"
icon={<DashboardOutlinedIcon />}
/>
<ListItemLink
to="/settings"
primary={i18n.t("mainDrawer.listItems.settings")}