diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-04 09:25:30 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-04 09:25:30 -0700 |
commit | c71f3509641d7c8ca7edc620ae7677bfdae2da18 (patch) | |
tree | 68670b885340aa8f597cf08df83add3a4776154a /modern | |
parent | 71c5dfe153705bc6ee1931920f7713e73284115f (diff) | |
download | trackermap-web-c71f3509641d7c8ca7edc620ae7677bfdae2da18.tar.gz trackermap-web-c71f3509641d7c8ca7edc620ae7677bfdae2da18.tar.bz2 trackermap-web-c71f3509641d7c8ca7edc620ae7677bfdae2da18.zip |
Badge to indicate filtering
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/main/MainPage.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index 7bc2eb88..4bc703f6 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -3,7 +3,7 @@ import React, { } from 'react'; import { useNavigate } from 'react-router-dom'; import { - Paper, Toolbar, IconButton, Button, OutlinedInput, InputAdornment, Popover, FormControl, InputLabel, Select, MenuItem, FormGroup, FormControlLabel, Checkbox, + Paper, Toolbar, IconButton, Button, OutlinedInput, InputAdornment, Popover, FormControl, InputLabel, Select, MenuItem, FormGroup, FormControlLabel, Checkbox, Badge, } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { useTheme } from '@mui/material/styles'; @@ -239,7 +239,9 @@ const MainPage = () => { endAdornment={( <InputAdornment position="end"> <IconButton size="small" onClick={() => setFilterAnchorEl(filterRef.current)}> - <TuneIcon fontSize="small" /> + <Badge color="info" variant="dot" invisible={!filterStatuses.length && !filterGroups.length}> + <TuneIcon fontSize="small" /> + </Badge> </IconButton> </InputAdornment> )} |