mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
Fix UI lint by running npm prettier
Signed-off-by: Seth Foster <fosterbseth@gmail.com>
This commit is contained in:
@@ -295,7 +295,9 @@ function InstanceDetail({ setBreadcrumb, isK8s }) {
|
|||||||
value={instance.capacity_adjustment}
|
value={instance.capacity_adjustment}
|
||||||
onChange={handleChangeValue}
|
onChange={handleChangeValue}
|
||||||
isDisabled={
|
isDisabled={
|
||||||
!config?.me?.is_superuser || !instance.enabled || !isManaged
|
!config?.me?.is_superuser ||
|
||||||
|
!instance.enabled ||
|
||||||
|
!isManaged
|
||||||
}
|
}
|
||||||
data-cy="slider"
|
data-cy="slider"
|
||||||
/>
|
/>
|
||||||
@@ -339,16 +341,18 @@ function InstanceDetail({ setBreadcrumb, isK8s }) {
|
|||||||
)}
|
)}
|
||||||
</DetailList>
|
</DetailList>
|
||||||
<CardActionsRow>
|
<CardActionsRow>
|
||||||
{config?.me?.is_superuser && isK8s && (isExecutionNode || isHopNode || !isManaged) && (
|
{config?.me?.is_superuser &&
|
||||||
<Button
|
isK8s &&
|
||||||
ouiaId="instance-detail-edit-button"
|
(isExecutionNode || isHopNode || !isManaged) && (
|
||||||
aria-label={t`edit`}
|
<Button
|
||||||
component={Link}
|
ouiaId="instance-detail-edit-button"
|
||||||
to={`/instances/${id}/edit`}
|
aria-label={t`edit`}
|
||||||
>
|
component={Link}
|
||||||
{t`Edit`}
|
to={`/instances/${id}/edit`}
|
||||||
</Button>
|
>
|
||||||
)}
|
{t`Edit`}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
{config?.me?.is_superuser &&
|
{config?.me?.is_superuser &&
|
||||||
isK8s &&
|
isK8s &&
|
||||||
(isExecutionNode || isHopNode || !isManaged) && (
|
(isExecutionNode || isHopNode || !isManaged) && (
|
||||||
@@ -363,7 +367,9 @@ function InstanceDetail({ setBreadcrumb, isK8s }) {
|
|||||||
<Tooltip content={t`Run a health check on the instance`}>
|
<Tooltip content={t`Run a health check on the instance`}>
|
||||||
<Button
|
<Button
|
||||||
isDisabled={
|
isDisabled={
|
||||||
!config?.me?.is_superuser || instance.health_check_pending || !instance.managed
|
!config?.me?.is_superuser ||
|
||||||
|
instance.health_check_pending ||
|
||||||
|
!instance.managed
|
||||||
}
|
}
|
||||||
variant="primary"
|
variant="primary"
|
||||||
ouiaId="health-check-button"
|
ouiaId="health-check-button"
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ function InstanceForm({
|
|||||||
{(formik) => (
|
{(formik) => (
|
||||||
<Form autoComplete="off" onSubmit={formik.handleSubmit}>
|
<Form autoComplete="off" onSubmit={formik.handleSubmit}>
|
||||||
<FormColumnLayout>
|
<FormColumnLayout>
|
||||||
<InstanceFormFields isEdit={isEdit} instance={instance}/>
|
<InstanceFormFields isEdit={isEdit} instance={instance} />
|
||||||
<FormSubmitError error={submitError} />
|
<FormSubmitError error={submitError} />
|
||||||
<FormActionGroup
|
<FormActionGroup
|
||||||
onCancel={handleCancel}
|
onCancel={handleCancel}
|
||||||
|
|||||||
Reference in New Issue
Block a user