You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Add component for downloading the static report (#1312)
- Adds a download button to handle downloading the analysis report with
custom headers driven by props passed in
- Uses the Fetch API to allow setting custom headers. Converts the
received data to a blob & then creates an object URL from that blob.
Then we can use that URL with a temporary anchor `<a>` element to
trigger the download with a localized loading state.
- This approach allows us to bin any custom headers we were adding in
the proxy and just use the fetch api to set the custom headers.

Signed-off-by: ibolton336 <[email protected]>
Copy file name to clipboardexpand all lines: client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer-analysis.tsx
+59-18
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,11 @@ import {
6
6
Title,
7
7
Tooltip,
8
8
Button,
9
+
Divider,
10
+
DescriptionList,
11
+
DescriptionListGroup,
12
+
DescriptionListTerm,
13
+
DescriptionListDescription,
9
14
}from"@patternfly/react-core";
10
15
import{
11
16
CheckCircleIcon,
@@ -23,8 +28,10 @@ import { EmptyTextMessage } from "@app/components/EmptyTextMessage";
0 commit comments