mirror of
https://github.com/ansible/awx.git
synced 2026-07-12 00:44:36 -02:30
Cleanup UI linting, tests, and import
Cleans up UI linting errors Fix broken UI unit tests Adds missing LabelsMixin import
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
import React, { useState, useCallback, useEffect } from 'react';
|
import React, { useState, useCallback, useEffect } from 'react';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
|
|
||||||
import { Card, PageSection } from '@patternfly/react-core';
|
import { Card, PageSection } from '@patternfly/react-core';
|
||||||
import { CardBody } from 'components/Card';
|
import { CardBody } from 'components/Card';
|
||||||
|
|
||||||
import { WorkflowJobTemplatesAPI, OrganizationsAPI, UsersAPI } from 'api';
|
import { WorkflowJobTemplatesAPI, OrganizationsAPI, UsersAPI } from 'api';
|
||||||
import { useConfig } from 'contexts/Config';
|
import { useConfig } from 'contexts/Config';
|
||||||
import useRequest from 'hooks/useRequest';
|
import useRequest from 'hooks/useRequest';
|
||||||
|
|||||||
@@ -186,11 +186,14 @@ function WorkflowJobTemplateForm({
|
|||||||
aria-label={t`source control branch`}
|
aria-label={t`source control branch`}
|
||||||
/>
|
/>
|
||||||
</FieldWithPrompt>
|
</FieldWithPrompt>
|
||||||
|
</FormColumnLayout>
|
||||||
|
<FormFullWidthLayout>
|
||||||
<FieldWithPrompt
|
<FieldWithPrompt
|
||||||
label={t`Labels`}
|
|
||||||
fieldId="template-labels"
|
fieldId="template-labels"
|
||||||
|
label={t`Labels`}
|
||||||
promptId="template-ask-labels-on-launch"
|
promptId="template-ask-labels-on-launch"
|
||||||
promptName="ask_labels_on_launch"
|
promptName="ask_labels_on_launch"
|
||||||
|
tooltip={helpText.labels}
|
||||||
>
|
>
|
||||||
<LabelSelect
|
<LabelSelect
|
||||||
value={labelsField.value}
|
value={labelsField.value}
|
||||||
@@ -199,6 +202,7 @@ function WorkflowJobTemplateForm({
|
|||||||
createText={t`Create`}
|
createText={t`Create`}
|
||||||
/>
|
/>
|
||||||
</FieldWithPrompt>
|
</FieldWithPrompt>
|
||||||
|
</FormFullWidthLayout>
|
||||||
<FormFullWidthLayout>
|
<FormFullWidthLayout>
|
||||||
<VariablesField
|
<VariablesField
|
||||||
id="wfjt-variables"
|
id="wfjt-variables"
|
||||||
@@ -221,7 +225,6 @@ function WorkflowJobTemplateForm({
|
|||||||
onChange={(value) => jobTagsHelpers.setValue(value)}
|
onChange={(value) => jobTagsHelpers.setValue(value)}
|
||||||
/>
|
/>
|
||||||
</FieldWithPrompt>
|
</FieldWithPrompt>
|
||||||
</FormColumnLayout>
|
|
||||||
<FieldWithPrompt
|
<FieldWithPrompt
|
||||||
fieldId="template-skip-tags"
|
fieldId="template-skip-tags"
|
||||||
label={t`Skip Tags`}
|
label={t`Skip Tags`}
|
||||||
|
|||||||
Reference in New Issue
Block a user