Feature: add zip download to dry run results page

See issue #19318

Signed-off-by: fyyyyy <frankyyyy@live.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
fyyyyy
2023-08-15 19:08:35 +02:00
committed by Fredrik Adelöw
parent 0c2dded211
commit fe25880fbc
@@ -25,6 +25,7 @@ import { makeStyles } from '@material-ui/core/styles';
import CancelIcon from '@material-ui/icons/Cancel';
import CheckIcon from '@material-ui/icons/Check';
import DeleteIcon from '@material-ui/icons/Delete';
import DownloadIcon from '@material-ui/icons/GetApp';
import React from 'react';
import { useDryRun } from '../DryRunContext';
@@ -67,9 +68,18 @@ export function DryRunResultsList() {
</ListItemIcon>
<ListItemText primary={`Result ${result.id}`} />
<ListItemSecondaryAction>
<IconButton
edge="end"
aria-label="download"
title="Download as .zip"
onClick={() => dryRun.downloadResult(result.id)}
>
<DownloadIcon />
</IconButton>
<IconButton
edge="end"
aria-label="delete"
title="Delete result"
onClick={() => dryRun.deleteResult(result.id)}
>
<DeleteIcon />