mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
Fix linting errors
This commit is contained in:
@@ -15,7 +15,7 @@ function DaysToKeepStep() {
|
|||||||
const validators = [required(null), minMaxValue(0), integer()];
|
const validators = [required(null), minMaxValue(0), integer()];
|
||||||
return (
|
return (
|
||||||
<Form
|
<Form
|
||||||
onSubmit={e => {
|
onSubmit={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import {
|
|||||||
WizardFooter,
|
WizardFooter,
|
||||||
Form,
|
Form,
|
||||||
} from '@patternfly/react-core';
|
} from '@patternfly/react-core';
|
||||||
import AlertModal from 'components/AlertModal';
|
|
||||||
import ContentError from 'components/ContentError';
|
import ContentError from 'components/ContentError';
|
||||||
import ContentLoading from 'components/ContentLoading';
|
import ContentLoading from 'components/ContentLoading';
|
||||||
|
|
||||||
|
|||||||
@@ -2,15 +2,15 @@ import React, { useEffect, useCallback } from 'react';
|
|||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { func, shape } from 'prop-types';
|
import { func, shape } from 'prop-types';
|
||||||
import { SystemJobTemplatesAPI } from '../../../../../../api';
|
import { SystemJobTemplatesAPI } from 'api';
|
||||||
import { getQSConfig, parseQueryString } from '../../../../../../util/qs';
|
import { getQSConfig, parseQueryString } from 'util/qs';
|
||||||
import useRequest from '../../../../../../util/useRequest';
|
import useRequest from 'hooks/useRequest';
|
||||||
import DataListToolbar from '../../../../../../components/DataListToolbar';
|
import DataListToolbar from 'components/DataListToolbar';
|
||||||
import CheckboxListItem from '../../../../../../components/CheckboxListItem';
|
import CheckboxListItem from 'components/CheckboxListItem';
|
||||||
import PaginatedTable, {
|
import PaginatedTable, {
|
||||||
HeaderCell,
|
HeaderCell,
|
||||||
HeaderRow,
|
HeaderRow,
|
||||||
} from '../../../../../../components/PaginatedTable';
|
} from 'components/PaginatedTable';
|
||||||
|
|
||||||
const QS_CONFIG = getQSConfig('system-job-templates', {
|
const QS_CONFIG = getQSConfig('system-job-templates', {
|
||||||
page: 1,
|
page: 1,
|
||||||
@@ -45,10 +45,10 @@ function SystemJobTemplatesList({ nodeResource, onUpdateNodeResource }) {
|
|||||||
count: response.data.count,
|
count: response.data.count,
|
||||||
relatedSearchableKeys: (
|
relatedSearchableKeys: (
|
||||||
actionsResponse?.data?.related_search_fields || []
|
actionsResponse?.data?.related_search_fields || []
|
||||||
).map(val => val.slice(0, -8)),
|
).map((val) => val.slice(0, -8)),
|
||||||
searchableKeys: Object.keys(
|
searchableKeys: Object.keys(
|
||||||
actionsResponse.data.actions?.GET || {}
|
actionsResponse.data.actions?.GET || {}
|
||||||
).filter(key => actionsResponse.data.actions?.GET[key].filterable),
|
).filter((key) => actionsResponse.data.actions?.GET[key].filterable),
|
||||||
};
|
};
|
||||||
}, [location]),
|
}, [location]),
|
||||||
{
|
{
|
||||||
@@ -88,7 +88,7 @@ function SystemJobTemplatesList({ nodeResource, onUpdateNodeResource }) {
|
|||||||
isRadio
|
isRadio
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
renderToolbar={props => <DataListToolbar {...props} fillWidth />}
|
renderToolbar={(props) => <DataListToolbar {...props} fillWidth />}
|
||||||
showPageSizeOptions={false}
|
showPageSizeOptions={false}
|
||||||
toolbarSearchColumns={[
|
toolbarSearchColumns={[
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export default function useDaysToKeepStep() {
|
|||||||
isReady: true,
|
isReady: true,
|
||||||
contentError: null,
|
contentError: null,
|
||||||
hasError: !!daysToKeepMeta.error,
|
hasError: !!daysToKeepMeta.error,
|
||||||
setTouched: setFieldTouched => {
|
setTouched: (setFieldTouched) => {
|
||||||
setFieldTouched('daysToKeep', true, false);
|
setFieldTouched('daysToKeep', true, false);
|
||||||
},
|
},
|
||||||
validate: () => {},
|
validate: () => {},
|
||||||
|
|||||||
Reference in New Issue
Block a user