mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 16:57:39 -05:00
Get Email for Active System Owners
This commit is contained in:
@@ -9,6 +9,7 @@ import AllSystems from "../AllSystems/AllSystems"
|
||||
import ListSystems from "../System/ListSystems"
|
||||
import UpdateSystem from "../System/UpdateSystem"
|
||||
import CreateSystem from "../System/CreateSystem"
|
||||
import ActiveUsers from "../ActiveUsers/ActiveUsers"
|
||||
|
||||
|
||||
const App = (params) => {
|
||||
@@ -22,6 +23,7 @@ const App = (params) => {
|
||||
<Route path="/create-system" element={ <Restricted><CreateSystem/></Restricted>} />
|
||||
<Route path="/list-systems" element={ <Restricted><ListSystems/></Restricted>} />
|
||||
<Route path="/all-systems" element={ <AdminRestricted><AllSystems/></AdminRestricted>} />
|
||||
<Route path="/active-users" element={ <AdminRestricted><ActiveUsers/></AdminRestricted>} />
|
||||
<Route path="/" element={ <Restricted><ListSystems/></Restricted>} />
|
||||
<Route render={() => (<div>Miss</div>)} />
|
||||
</Routes>
|
||||
|
||||
@@ -24,6 +24,10 @@ const Navigation = (props) => {
|
||||
{process.env.REACT_APP_SITE_NAME}
|
||||
</Menu.Item>
|
||||
<Menu.Menu position="right">
|
||||
{admin &&
|
||||
<Link to="/active-users">
|
||||
<Menu.Item name="active-users">Active Users</Menu.Item>
|
||||
</Link> }
|
||||
{admin &&
|
||||
<Link to="/all-systems">
|
||||
<Menu.Item name="all-systems">All Systems</Menu.Item>
|
||||
|
||||
Reference in New Issue
Block a user