Skip to content

Commit

Permalink
webui: Let error reporting dialog test area auto resize
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou committed Aug 24, 2023
1 parent 20bec14 commit 064d5ba
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions ui/webui/src/components/Error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import {
HelperTextItem,
Modal,
ModalVariant,
Stack,
StackItem,
TextArea,
TextContent,
TextVariants,
Expand Down Expand Up @@ -92,18 +94,25 @@ export const BZReportModal = ({
titleIconVariant={titleIconVariant}
variant={ModalVariant.large}
footer={
<>
<Button
variant="primary"
isLoading={preparingReport}
isDisabled={logContent === undefined || preparingReport}
icon={<ExternalLinkAltIcon />}
onClick={() => openBZIssue(reportLinkURL)}
component="a">
{preparingReport ? _("Preparing report") : _("Report issue")}
</Button>
{buttons}
</>
<Stack hasGutter>
<FormHelperText isHidden={false}>
<HelperText>
<HelperTextItem>{_("Reporting an issue will send information over the network. Plese review and edit the attached log to remove any sensitive information.")}</HelperTextItem>
</HelperText>
</FormHelperText>
<StackItem>
<Button
variant="primary"
isLoading={preparingReport}
isDisabled={logContent === undefined || preparingReport}
icon={<ExternalLinkAltIcon />}
onClick={() => openBZIssue(reportLinkURL)}
component="a">
{preparingReport ? _("Preparing report") : _("Report issue")}
</Button>
{buttons}
</StackItem>
</Stack>
}>
<Form>
{detailsLabel &&
Expand All @@ -125,11 +134,6 @@ export const BZReportModal = ({
isDisabled={logContent === undefined || preparingReport}
rows={25}
/>
<FormHelperText isHidden={false}>
<HelperText>
<HelperTextItem>{_("Reporting an issue will send information over the network. Plese review and edit the attached log to remove any sensitive information.")}</HelperTextItem>
</HelperText>
</FormHelperText>
</FormGroup>
</Form>
</Modal>
Expand Down

0 comments on commit 064d5ba

Please sign in to comment.