Skip to content

Commit

Permalink
Add example for the registry / search entry
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly authored and martinpitt committed Nov 9, 2021
1 parent d6e8a24 commit 8ece0c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ImageRunModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
SelectOption, SelectGroup,
TextInput, Tabs, Tab, TabTitleText,
ToggleGroup, ToggleGroupItem,
Flex,
Flex, FlexItem,
Popover,
} from '@patternfly/react-core';
import { MinusIcon, OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
Expand Down Expand Up @@ -731,7 +731,13 @@ export class ImageRunModal extends React.Component {
labelIcon={
<Popover aria-label={_("Image selection help")}
enableFlip
bodyContent={_("host[:port]/[user]/container[:tag].")}>
bodyContent={
<Flex direction={{ default: 'column' }}>
<FlexItem>{_("host[:port]/[user]/container[:tag]")}</FlexItem>
<FlexItem>{cockpit.format(_("Example: $0"), "quay.io/libpod/busybox")}</FlexItem>
<FlexItem>{cockpit.format(_("Searching: $0"), "quay.io/busybox")}</FlexItem>
</Flex>
}>
<button onClick={e => e.preventDefault()} className="pf-c-form__group-label-help">
<OutlinedQuestionCircleIcon />
</button>
Expand Down

0 comments on commit 8ece0c2

Please sign in to comment.