aboutsummaryrefslogtreecommitdiff
path: root/modern/src/EditCollectionView.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-06-27 11:08:26 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-06-27 11:08:26 -0700
commit26916278758cd5e4abb16aa31e31099e066ea8d5 (patch)
tree5119a65f67cd426ed06b9cb553b7d24ba6dce093 /modern/src/EditCollectionView.js
parentd86a3ef187359fbe83a5dd950295868c4ef39d09 (diff)
downloadtrackermap-web-26916278758cd5e4abb16aa31e31099e066ea8d5.tar.gz
trackermap-web-26916278758cd5e4abb16aa31e31099e066ea8d5.tar.bz2
trackermap-web-26916278758cd5e4abb16aa31e31099e066ea8d5.zip
Add geofences screen
Diffstat (limited to 'modern/src/EditCollectionView.js')
-rw-r--r--modern/src/EditCollectionView.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/EditCollectionView.js b/modern/src/EditCollectionView.js
index d3d0af17..572a1d19 100644
--- a/modern/src/EditCollectionView.js
+++ b/modern/src/EditCollectionView.js
@@ -18,7 +18,7 @@ const useStyles = makeStyles(theme => ({
},
}));
-const EditCollectionView = ({ content, editPath, endpoint }) => {
+const EditCollectionView = ({ content, editPath, endpoint, disableAdd }) => {
const classes = useStyles();
const history = useHistory();
@@ -62,7 +62,7 @@ const EditCollectionView = ({ content, editPath, endpoint }) => {
return (
<>
<Content updateTimestamp={updateTimestamp} onMenuClick={menuShow} />
- {adminEnabled &&
+ {adminEnabled && !disableAdd &&
<Fab size="medium" color="primary" className={classes.fab} onClick={handleAdd}>
<AddIcon />
</Fab>