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:
Gabriel Hernandez 2023-06-28 17:28:17 +01:00 committed by GitHub
parent 569bf15fa5
commit 36ca97ff2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1 @@
- add enable and disable windows mdm activity UI

View File

@ -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;

View File

@ -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);
}