Skip to content

Commit

Permalink
Windows Migration: leave checkbox disabled if non premium (#24272)
Browse files Browse the repository at this point in the history
  • Loading branch information
mna authored Dec 2, 2024
1 parent f399a90 commit 1677a0a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 1677a0a

Please sign in to comment.