Skip to content

Commit

Permalink
storage: Fix spacing in 'Add key' dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
marusak committed May 21, 2021
1 parent a35f220 commit 5b75025
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/storaged/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ import {
Form, FormGroup,
Radio,
Select as TypeAheadSelect, SelectOption, SelectVariant,
Spinner,
Spinner, Split,
TextInput as TextInputPF4,
Tooltip, TooltipPosition,
} from "@patternfly/react-core";
Expand Down Expand Up @@ -564,16 +564,17 @@ export const SelectOneRadio = (tag, title, options) => {
title: title,
options: options,
initial_value: options.value || options.choices[0].value,
hasNoPaddingTop: true,

render: (val, change) => {
return (
<FormGroup isInline data-field={tag} data-field-type="select-radio">
<Split hasGutter data-field={tag} data-field-type="select-radio">
{ options.choices.map(c => (
<Radio key={c.value} isChecked={val == c.value} data-data={c.value}
id={tag + '.' + c.value}
onChange={event => change(c.value)} label={c.title} />))
}
</FormGroup>
</Split>
);
}
};
Expand Down

0 comments on commit 5b75025

Please sign in to comment.