aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-03-05 21:43:11 -0600
committerIván Ávalos <avalos@disroot.org>2023-03-05 21:43:11 -0600
commit19a5dc94fcb678e27e766258b2839c139953776c (patch)
tree3e6e9d2c11f082b3980260541abaf4ea0a7b3392 /modern/src/map
parent5c425999cf2d2aed657c61dbc636d9ac178aa63a (diff)
downloadetbsa-traccar-web-19a5dc94fcb678e27e766258b2839c139953776c.tar.gz
etbsa-traccar-web-19a5dc94fcb678e27e766258b2839c139953776c.tar.bz2
etbsa-traccar-web-19a5dc94fcb678e27e766258b2839c139953776c.zip
Cambios en reportes
Diffstat (limited to 'modern/src/map')
-rw-r--r--modern/src/map/ReplayPathMap.js2
-rw-r--r--modern/src/map/StatusView.js13
2 files changed, 9 insertions, 6 deletions
diff --git a/modern/src/map/ReplayPathMap.js b/modern/src/map/ReplayPathMap.js
index 022548b..c0c3a97 100644
--- a/modern/src/map/ReplayPathMap.js
+++ b/modern/src/map/ReplayPathMap.js
@@ -25,7 +25,7 @@ const ReplayPathMap = ({ positions }) => {
'line-cap': 'round',
},
paint: {
- 'line-color': '#333',
+ 'line-color': '#337729',
'line-width': 5,
},
});
diff --git a/modern/src/map/StatusView.js b/modern/src/map/StatusView.js
index b892e77..5c8d22d 100644
--- a/modern/src/map/StatusView.js
+++ b/modern/src/map/StatusView.js
@@ -103,11 +103,14 @@ const StatusView = ({
</List>
</Grid>
<Grid item container>
- <Grid item>
- <IconButton onClick={handleClick}>
- <InfoIcon />
- </IconButton>
- </Grid>
+ {session.user.administrator && (<>
+ <Grid item>
+ <IconButton onClick={handleClick}>
+ <InfoIcon />
+ </IconButton>
+ </Grid>
+ </>
+ )}
<Grid item>
<IconButton onClick={() => onShowHistory(deviceId)}>
<PlayCircleFilledIcon />