mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Fixing some styling issues on New Label Query (#849)
* Fixing some styling issues on New Label Query * Fix lint error:
This commit is contained in:
parent
204417b361
commit
f3f6ff4010
3 changed files with 22 additions and 16 deletions
|
|
@ -184,14 +184,14 @@ class QueryForm extends Component {
|
|||
return (
|
||||
<div className={`${baseClass}__button-wrap`}>
|
||||
<Button
|
||||
className={`${baseClass}__save-changes-btn`}
|
||||
className={`${baseClass}__cancel-btn`}
|
||||
onClick={onCancel}
|
||||
variant="inverse"
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button
|
||||
className={`${baseClass}__save-as-new-btn`}
|
||||
className={`${baseClass}__save-btn`}
|
||||
disabled={!canSaveAsNew(fields, formData)}
|
||||
type="submit"
|
||||
variant="brand"
|
||||
|
|
@ -227,10 +227,13 @@ class QueryForm extends Component {
|
|||
const { platformOptions } = helpers;
|
||||
|
||||
return (
|
||||
<Dropdown
|
||||
{...fields.platform}
|
||||
options={platformOptions}
|
||||
/>
|
||||
<div className="form-field form-field--dropdown">
|
||||
<label className="form-field__label" htmlFor="platform">Platform</label>
|
||||
<Dropdown
|
||||
{...fields.platform}
|
||||
options={platformOptions}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
text-align: right;
|
||||
}
|
||||
|
||||
&__save-query-btn {
|
||||
&__save-query-btn,
|
||||
&__cancel-btn {
|
||||
margin-right: $xsmall;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -233,15 +233,17 @@ export class ManageHostsPage extends Component {
|
|||
|
||||
if (isAddLabel) {
|
||||
return (
|
||||
<QueryForm
|
||||
key="query-composer"
|
||||
onCancel={onCancelAddLabel}
|
||||
onOsqueryTableSelect={onOsqueryTableSelect}
|
||||
handleSubmit={onSaveAddLabel}
|
||||
queryType="label"
|
||||
query={queryStub}
|
||||
serverErrors={labelErrors}
|
||||
/>
|
||||
<div className="body-wrap">
|
||||
<QueryForm
|
||||
key="query-composer"
|
||||
onCancel={onCancelAddLabel}
|
||||
onOsqueryTableSelect={onOsqueryTableSelect}
|
||||
handleSubmit={onSaveAddLabel}
|
||||
queryType="label"
|
||||
query={queryStub}
|
||||
serverErrors={labelErrors}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue