| | |
| | | import { handleRestoreAgvAll } from '../../http'; |
| | | import BoolValueIcon from '../BoolValueIcon'; |
| | | import ConfirmButton from '../../../page/components/ConfirmButton'; |
| | | import { grey } from '@mui/material/colors'; |
| | | |
| | | let three; |
| | | |
| | |
| | | left="50%" |
| | | style={{ transform: 'translate(-50%, -50%)' }} |
| | | > |
| | | <CircularProgress /> |
| | | <CircularProgress sx={{ color: grey[50] }} /> |
| | | </Box> |
| | | )} |
| | | </Box> |
| | |
| | | > |
| | | {translate('page.map.settings.map.more.title')} |
| | | </Button> |
| | | |
| | | <ConfirmButton |
| | | label="page.map.action.restoreALl" |
| | | color="primary" |
| | | variant="contained" |
| | | onConfirm={() => { |
| | | handleRestoreAll(); |
| | | }} |
| | | /> |
| | | {info && ( |
| | | info.status === 1 |
| | | ? <Button variant="contained" color="error" fullWidth onClick={() => { |
| | |
| | | {translate('page.map.action.enable')} |
| | | </Button> |
| | | )} |
| | | <ConfirmButton |
| | | label="page.map.action.restoreALl" |
| | | color="inherit" |
| | | // variant="contained" |
| | | onConfirm={() => { |
| | | handleRestoreAll(); |
| | | }} |
| | | /> |
| | | </Stack> |
| | | </Grid> |
| | | </Grid> |