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 ( return (
<div onClick={drawerClose}> <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 <ListItemLink
to="/tickets" to="/tickets"
primary={i18n.t("mainDrawer.listItems.tickets")} primary={i18n.t("mainDrawer.listItems.tickets")}
@ -121,6 +109,23 @@ const MainListItems = (props) => {
primary={i18n.t("mainDrawer.listItems.queues")} primary={i18n.t("mainDrawer.listItems.queues")}
icon={<AccountTreeOutlinedIcon />} 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 <ListItemLink
to="/settings" to="/settings"
primary={i18n.t("mainDrawer.listItems.settings")} primary={i18n.t("mainDrawer.listItems.settings")}