• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vanvalenlab / deepcell-label / 5720827273

pending completion
5720827273

Pull #519

github

web-flow
Merge 11c4d796a into 556f9652b
Pull Request #519: More reqs cleanup

470 of 1239 branches covered (37.93%)

Branch coverage included in aggregate %.

2559 of 4707 relevant lines covered (54.37%)

288.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/frontend/src/Project/DisplayControls/ExportButton/DownloadButton.js
1
import GetAppIcon from '@mui/icons-material/GetApp';
2
import { Button, CircularProgress } from '@mui/material';
3
import { green } from '@mui/material/colors';
4
import { useSelector } from '@xstate/react';
5
import React from 'react';
6
import { useExport } from '../../ProjectContext';
7

8
function DownloadButton() {
9
  const export_ = useExport();
×
10
  const downloading = useSelector(export_, (state) => state.matches('downloading'));
×
11

12
  return (
×
13
    <Button
14
      variant='contained'
15
      color='primary'
16
      endIcon={<GetAppIcon />}
17
      onClick={() => export_.send('DOWNLOAD')}
×
18
      disabled={downloading}
19
      sx={{ position: 'relative' }}
20
    >
21
      Download
22
      {downloading && (
×
23
        <CircularProgress
24
          sx={{
25
            color: green[500],
26
            position: 'absolute',
27
          }}
28
        />
29
      )}
30
    </Button>
31
  );
32
}
33

34
export default DownloadButton;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc