mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 05:59:28 -02:30
Add descriptive helper text when log aggregator toggle is disabled
This commit is contained in:
@@ -138,7 +138,26 @@ function LoggingEdit({ i18n }) {
|
|||||||
<FormColumnLayout>
|
<FormColumnLayout>
|
||||||
<BooleanField
|
<BooleanField
|
||||||
name="LOG_AGGREGATOR_ENABLED"
|
name="LOG_AGGREGATOR_ENABLED"
|
||||||
config={logging.LOG_AGGREGATOR_ENABLED}
|
config={{
|
||||||
|
...logging.LOG_AGGREGATOR_ENABLED,
|
||||||
|
help_text: (
|
||||||
|
<>
|
||||||
|
{logging.LOG_AGGREGATOR_ENABLED.help_text}
|
||||||
|
{!formik.values.LOG_AGGREGATOR_ENABLED &&
|
||||||
|
(!formik.values.LOG_AGGREGATOR_HOST ||
|
||||||
|
!formik.values.LOG_AGGREGATOR_TYPE) && (
|
||||||
|
<>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
{i18n._(
|
||||||
|
t`Cannot enable log aggregator without providing
|
||||||
|
logging aggregator host and logging aggregator type.`
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
),
|
||||||
|
}}
|
||||||
ariaLabel={i18n._(t`Enable external logging`)}
|
ariaLabel={i18n._(t`Enable external logging`)}
|
||||||
disabled={
|
disabled={
|
||||||
!formik.values.LOG_AGGREGATOR_ENABLED &&
|
!formik.values.LOG_AGGREGATOR_ENABLED &&
|
||||||
|
|||||||
Reference in New Issue
Block a user