mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Fixes spelling error
This commit is contained in:
@@ -33,7 +33,7 @@ function TemplatesList({ i18n }) {
|
|||||||
const { id: projectId } = useParams();
|
const { id: projectId } = useParams();
|
||||||
const { pathname, search } = useLocation();
|
const { pathname, search } = useLocation();
|
||||||
|
|
||||||
const [deletionError, setDelectionError] = useState(null);
|
const [deletionError, setDeletionError] = useState(null);
|
||||||
const [contentError, setContentError] = useState(null);
|
const [contentError, setContentError] = useState(null);
|
||||||
const [hasContentLoading, setHasContentLoading] = useState(true);
|
const [hasContentLoading, setHasContentLoading] = useState(true);
|
||||||
const [jtActions, setJTActions] = useState(null);
|
const [jtActions, setJTActions] = useState(null);
|
||||||
@@ -75,7 +75,7 @@ function TemplatesList({ i18n }) {
|
|||||||
jtOptionsPromise,
|
jtOptionsPromise,
|
||||||
wfjtOptionsPromise,
|
wfjtOptionsPromise,
|
||||||
]);
|
]);
|
||||||
setDelectionError(null);
|
setDeletionError(null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const [
|
const [
|
||||||
@@ -133,7 +133,7 @@ function TemplatesList({ i18n }) {
|
|||||||
);
|
);
|
||||||
setCount(count - selected.length);
|
setCount(count - selected.length);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setDelectionError(err);
|
setDeletionError(err);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -243,7 +243,7 @@ function TemplatesList({ i18n }) {
|
|||||||
isOpen={deletionError}
|
isOpen={deletionError}
|
||||||
variant="danger"
|
variant="danger"
|
||||||
title={i18n._(t`Error!`)}
|
title={i18n._(t`Error!`)}
|
||||||
onClose={() => setDelectionError(null)}
|
onClose={() => setDeletionError(null)}
|
||||||
>
|
>
|
||||||
{i18n._(t`Failed to delete one or more templates.`)}
|
{i18n._(t`Failed to delete one or more templates.`)}
|
||||||
<ErrorDetail error={deletionError} />
|
<ErrorDetail error={deletionError} />
|
||||||
|
|||||||
Reference in New Issue
Block a user