Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webui: Let error reporting dialog test area auto resize #5076

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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