diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-18 16:51:46 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-18 16:51:46 -0700 |
commit | 4993f83ad1a5ad78a0b076503ab8c0b8f1bbf073 (patch) | |
tree | c5e4ce57cca3aad35e1869f21faa99b930871d51 /modern/src/settings/components/CollectionFab.js | |
parent | b88aa76538f8cebfa64d7f0d6b1cba8608432068 (diff) | |
download | trackermap-web-4993f83ad1a5ad78a0b076503ab8c0b8f1bbf073.tar.gz trackermap-web-4993f83ad1a5ad78a0b076503ab8c0b8f1bbf073.tar.bz2 trackermap-web-4993f83ad1a5ad78a0b076503ab8c0b8f1bbf073.zip |
Option to disable email change
Diffstat (limited to 'modern/src/settings/components/CollectionFab.js')
-rw-r--r-- | modern/src/settings/components/CollectionFab.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/components/CollectionFab.js b/modern/src/settings/components/CollectionFab.js index b1230733..3c1fa783 100644 --- a/modern/src/settings/components/CollectionFab.js +++ b/modern/src/settings/components/CollectionFab.js @@ -3,7 +3,7 @@ import { Fab } from '@mui/material'; import makeStyles from '@mui/styles/makeStyles'; import AddIcon from '@mui/icons-material/Add'; import { useNavigate } from 'react-router-dom'; -import { useReadonly } from '../../common/util/permissions'; +import { useRestriction } from '../../common/util/permissions'; const useStyles = makeStyles((theme) => ({ fab: { @@ -20,7 +20,7 @@ const CollectionFab = ({ editPath, disabled }) => { const classes = useStyles(); const navigate = useNavigate(); - const readonly = useReadonly(); + const readonly = useRestriction('readonly'); if (!readonly && !disabled) { return ( |