mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Add descriptive helper text when log aggregator toggle is disabled
This commit is contained in:
parent
30f5fbb07a
commit
865f348167
@ -138,7 +138,26 @@ function LoggingEdit({ i18n }) {
|
||||
<FormColumnLayout>
|
||||
<BooleanField
|
||||
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`)}
|
||||
disabled={
|
||||
!formik.values.LOG_AGGREGATOR_ENABLED &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user