mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Windows Migration: leave checkbox disabled if non premium (#24272)
This commit is contained in:
parent
f399a90901
commit
1677a0ae29
1 changed files with 5 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ interface IWindowsMdmPageProps {
|
|||
}
|
||||
|
||||
const WindowsMdmPage = ({ router }: IWindowsMdmPageProps) => {
|
||||
const { config } = useContext(AppContext);
|
||||
const { config, isPremiumTier } = useContext(AppContext);
|
||||
|
||||
const [mdmOn, setMdmOn] = useState(
|
||||
config?.mdm?.windows_enabled_and_configured ?? false
|
||||
|
|
@ -124,9 +124,12 @@ const WindowsMdmPage = ({ router }: IWindowsMdmPageProps) => {
|
|||
/>
|
||||
<p>{descriptionText}</p>
|
||||
<Checkbox
|
||||
disabled={!mdmOn}
|
||||
disabled={!isPremiumTier || !mdmOn}
|
||||
value={autoMigration}
|
||||
onChange={onChangeAutoMigration}
|
||||
tooltipContent={
|
||||
isPremiumTier ? "" : "This feature is included in Fleet Premium."
|
||||
}
|
||||
>
|
||||
Automatically migrate hosts connected to another MDM solution
|
||||
</Checkbox>
|
||||
|
|
|
|||
Loading…
Reference in a new issue