diff --git a/awx/ui_next/src/components/HostToggle/HostToggle.jsx b/awx/ui_next/src/components/HostToggle/HostToggle.jsx index 43452ee3f0..638ccb2347 100644 --- a/awx/ui_next/src/components/HostToggle/HostToggle.jsx +++ b/awx/ui_next/src/components/HostToggle/HostToggle.jsx @@ -8,7 +8,18 @@ import ErrorDetail from '../ErrorDetail'; import useRequest from '../../util/useRequest'; import { HostsAPI } from '../../api'; -function HostToggle({ host, isDisabled = false, onToggle, className, i18n }) { +function HostToggle({ + i18n, + className, + host, + isDisabled = false, + onToggle, + tooltip = i18n._( + t`Indicates if a host is available and should be included in running + jobs. For hosts that are part of an external inventory, this may be + reset by the inventory sync process.` + ), +}) { const [isEnabled, setIsEnabled] = useState(host.enabled); const [showError, setShowError] = useState(false); @@ -39,14 +50,7 @@ function HostToggle({ host, isDisabled = false, onToggle, className, i18n }) { return ( - + - + + Smart inventory hosts are read-only. +
+ Toggle indicates if a host is available and should be included + in running jobs. For hosts that are part of an external + inventory, this may be reset by the inventory sync process. + + } + />