mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Feat UI activities for windows mdm (#12552)
relates to #12289 Implements enable and disable Windows mdm activity UI - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
569bf15fa5
commit
36ca97ff2a
3 changed files with 28 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
||||||
|
- add enable and disable windows mdm activity UI
|
||||||
|
|
@ -46,6 +46,8 @@ export enum ActivityType {
|
||||||
EnabledMacOSSetupEndUserAuth = "enabled_macos_setup_end_user_auth",
|
EnabledMacOSSetupEndUserAuth = "enabled_macos_setup_end_user_auth",
|
||||||
DisabledMacOSSetupEndUserAuth = "disabled_macos_setup_end_user_auth",
|
DisabledMacOSSetupEndUserAuth = "disabled_macos_setup_end_user_auth",
|
||||||
TransferredHosts = "transferred_hosts",
|
TransferredHosts = "transferred_hosts",
|
||||||
|
EnabledWindowsMdm = "enabled_windows_mdm",
|
||||||
|
DisabledWindowsMdm = "disabled_windows_mdm",
|
||||||
}
|
}
|
||||||
export interface IActivity {
|
export interface IActivity {
|
||||||
created_at: string;
|
created_at: string;
|
||||||
|
|
|
||||||
|
|
@ -464,6 +464,25 @@ const TAGGED_TEMPLATES = {
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
enabledWindowsMdm: (activity: IActivity) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{" "}
|
||||||
|
told Fleet to turn on MDM features for all Windows hosts (servers
|
||||||
|
excluded).
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
disabledWindowsMdm: (activity: IActivity) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{" "}
|
||||||
|
told Fleet to turn on MDM features for all Windows hosts (servers
|
||||||
|
excluded).
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const getDetail = (
|
const getDetail = (
|
||||||
|
|
@ -568,6 +587,12 @@ const getDetail = (
|
||||||
case ActivityType.TransferredHosts: {
|
case ActivityType.TransferredHosts: {
|
||||||
return TAGGED_TEMPLATES.transferredHosts(activity);
|
return TAGGED_TEMPLATES.transferredHosts(activity);
|
||||||
}
|
}
|
||||||
|
case ActivityType.EnabledWindowsMdm: {
|
||||||
|
return TAGGED_TEMPLATES.enabledWindowsMdm(activity);
|
||||||
|
}
|
||||||
|
case ActivityType.DisabledWindowsMdm: {
|
||||||
|
return TAGGED_TEMPLATES.disabledWindowsMdm(activity);
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
return TAGGED_TEMPLATES.defaultActivityTemplate(activity);
|
return TAGGED_TEMPLATES.defaultActivityTemplate(activity);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue