aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainToolbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/MainToolbar.js')
-rw-r--r--modern/src/MainToolbar.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js
index 897fd37e..b853dc47 100644
--- a/modern/src/MainToolbar.js
+++ b/modern/src/MainToolbar.js
@@ -29,6 +29,7 @@ import NotificationsActiveIcon from '@material-ui/icons/NotificationsActive';
import FormatListBulletedIcon from '@material-ui/icons/FormatListBulleted';
import TrendingUpIcon from '@material-ui/icons/TrendingUp';
import FolderIcon from '@material-ui/icons/Folder';
+import ReplayIcon from '@material-ui/icons/Replay';
import t from './common/localization';
const useStyles = makeStyles(theme => ({
@@ -78,7 +79,7 @@ const MainToolbar = () => {
</IconButton>
<Typography variant="h6" color="inherit" className={classes.flex}>
Traccar
- </Typography>
+ </Typography>
<Button color="inherit" onClick={handleLogout}>{t('loginLogout')}</Button>
</Toolbar>
</AppBar>
@@ -96,6 +97,12 @@ const MainToolbar = () => {
</ListItemIcon>
<ListItemText primary={t('mapTitle')} />
</ListItem>
+ <ListItem button onClick={() => history.push('/replay')}>
+ <ListItemIcon>
+ <ReplayIcon />
+ </ListItemIcon>
+ <ListItemText primary={t('reportReplay')} />
+ </ListItem>
</List>
<Divider />
<List