mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +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
@ -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",
|
||||
DisabledMacOSSetupEndUserAuth = "disabled_macos_setup_end_user_auth",
|
||||
TransferredHosts = "transferred_hosts",
|
||||
EnabledWindowsMdm = "enabled_windows_mdm",
|
||||
DisabledWindowsMdm = "disabled_windows_mdm",
|
||||
}
|
||||
export interface IActivity {
|
||||
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 = (
|
||||
@ -568,6 +587,12 @@ const getDetail = (
|
||||
case ActivityType.TransferredHosts: {
|
||||
return TAGGED_TEMPLATES.transferredHosts(activity);
|
||||
}
|
||||
case ActivityType.EnabledWindowsMdm: {
|
||||
return TAGGED_TEMPLATES.enabledWindowsMdm(activity);
|
||||
}
|
||||
case ActivityType.DisabledWindowsMdm: {
|
||||
return TAGGED_TEMPLATES.disabledWindowsMdm(activity);
|
||||
}
|
||||
default: {
|
||||
return TAGGED_TEMPLATES.defaultActivityTemplate(activity);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user