|
|
|
@ -24,6 +24,7 @@ import SettingsIcon from '@mui/icons-material/SettingsOutlined';
|
|
|
|
import LogoutIcon from '@mui/icons-material/LogoutOutlined';
|
|
|
|
import LogoutIcon from '@mui/icons-material/LogoutOutlined';
|
|
|
|
import AccountCircleIcon from '@mui/icons-material/AccountCircleOutlined';
|
|
|
|
import AccountCircleIcon from '@mui/icons-material/AccountCircleOutlined';
|
|
|
|
import InfoIcon from '@mui/icons-material/InfoOutlined';
|
|
|
|
import InfoIcon from '@mui/icons-material/InfoOutlined';
|
|
|
|
|
|
|
|
import UpdateIcon from '@mui/icons-material/SystemUpdateAltOutlined';
|
|
|
|
import { ThemeProvider } from '@mui/material/styles';
|
|
|
|
import { ThemeProvider } from '@mui/material/styles';
|
|
|
|
import theme from '../theme';
|
|
|
|
import theme from '../theme';
|
|
|
|
import deleteToken from '../core/deleteToken';
|
|
|
|
import deleteToken from '../core/deleteToken';
|
|
|
|
@ -115,20 +116,24 @@ export default function SettingsMain() {
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Divider />
|
|
|
|
<Divider />
|
|
|
|
<List>
|
|
|
|
<List>
|
|
|
|
<ListItem button key="Database Configuration">
|
|
|
|
<ListItem button key="Database Configuration" selected={window.location.pathname === '/settings'}>
|
|
|
|
<DashboardIcon sx={{ marginRight: 2, color: '#FFFFFF'}}/>
|
|
|
|
<DashboardIcon sx={{ marginRight: 2, color: '#FFFFFF'}}/>
|
|
|
|
<ListItemText primary="Database Configuration" sx={{ color: '#FFFFFF' }} />
|
|
|
|
<ListItemText primary="Database Configuration" sx={{ color: '#FFFFFF' }} />
|
|
|
|
</ListItem>
|
|
|
|
</ListItem>
|
|
|
|
<ListItem button key="Access lists">
|
|
|
|
<ListItem button key="Access lists" selected={window.location.pathname === '/settings/access'}>
|
|
|
|
<PeopleIcon sx={{ marginRight: 2, color: '#FFFFFF' }}/>
|
|
|
|
<PeopleIcon sx={{ marginRight: 2, color: '#FFFFFF' }}/>
|
|
|
|
<ListItemText primary="Access lists" sx={{ color: '#FFFFFF' }} />
|
|
|
|
<ListItemText primary="Access lists" sx={{ color: '#FFFFFF' }} />
|
|
|
|
</ListItem>
|
|
|
|
</ListItem>
|
|
|
|
<ListItem button key="Info">
|
|
|
|
<ListItem button key="Update" selected={window.location.pathname === '/settings/update'}>
|
|
|
|
|
|
|
|
<UpdateIcon sx={{ marginRight: 2, color: '#FFFFFF' }}/>
|
|
|
|
|
|
|
|
<ListItemText primary="Update" sx={{ color: '#FFFFFF' }} />
|
|
|
|
|
|
|
|
</ListItem>
|
|
|
|
|
|
|
|
<ListItem button key="Info" selected={window.location.pathname === '/settings/info'}>
|
|
|
|
<InfoIcon sx={{ marginRight: 2, color: '#FFFFFF' }}/>
|
|
|
|
<InfoIcon sx={{ marginRight: 2, color: '#FFFFFF' }}/>
|
|
|
|
<ListItemText primary="Info" sx={{ color: '#FFFFFF' }} />
|
|
|
|
<ListItemText primary="Info" sx={{ color: '#FFFFFF' }} onClick={() => { window.location.href = '/settings/info'; }}/>
|
|
|
|
</ListItem>
|
|
|
|
</ListItem>
|
|
|
|
{getDeveloperMode() && (
|
|
|
|
{getDeveloperMode() && (
|
|
|
|
<ListItem button key="Debug">
|
|
|
|
<ListItem button key="Debug" selected={window.location.pathname === '/settings/debug'}>
|
|
|
|
<BarChartIcon sx={{ marginRight: 2, color: '#FFFFFF' }}/>
|
|
|
|
<BarChartIcon sx={{ marginRight: 2, color: '#FFFFFF' }}/>
|
|
|
|
<ListItemText primary="Debug" sx={{ color: '#FFFFFF' }} />
|
|
|
|
<ListItemText primary="Debug" sx={{ color: '#FFFFFF' }} />
|
|
|
|
</ListItem>
|
|
|
|
</ListItem>
|
|
|
|
|