V2Wizard: Fix repo/description in review table of package on Edit
Previously the repository in the table of packages on the Review step defaulted to "EPEL". This expands the condition to take into account packages added on Edit. Description is handled in the same way. The "Not available" text is consistent with how the packages table looks on the Packages step for pkgs populated from the request. A popover with more information was added also to the review table as it contains explanation about the "Not available" text.
This commit is contained in:
parent
038f6f5ff5
commit
b9aa1c786a
3 changed files with 45 additions and 29 deletions
|
|
@ -0,0 +1,34 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Button, Popover, TextContent, Text } from '@patternfly/react-core';
|
||||
import { HelpIcon } from '@patternfly/react-icons';
|
||||
|
||||
const PackageInfoNotAvailablePopover = () => {
|
||||
return (
|
||||
<Popover
|
||||
headerContent="Package description"
|
||||
bodyContent={
|
||||
<TextContent>
|
||||
<Text>
|
||||
The package description provides more information about the package.
|
||||
</Text>
|
||||
<Text>
|
||||
When editing an existing blueprint, you may see a "Not
|
||||
available" value in the field because information about
|
||||
previously added packages can not be fetched.
|
||||
</Text>
|
||||
</TextContent>
|
||||
}
|
||||
>
|
||||
<Button
|
||||
variant="plain"
|
||||
aria-label="Package description"
|
||||
className="pf-u-pl-sm pf-u-pt-0 pf-u-pb-0"
|
||||
>
|
||||
<HelpIcon />
|
||||
</Button>
|
||||
</Popover>
|
||||
);
|
||||
};
|
||||
|
||||
export default PackageInfoNotAvailablePopover;
|
||||
Loading…
Add table
Add a link
Reference in a new issue