mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
BRP: add the batch resend activity support to the frontend (#28900)
This commit is contained in:
parent
e374972133
commit
6e65078b86
2 changed files with 14 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ export enum ActivityType {
|
|||
DeletedDeclarationProfile = "deleted_declaration_profile",
|
||||
EditedDeclarationProfile = "edited_declaration_profile",
|
||||
ResentConfigurationProfile = "resent_configuration_profile",
|
||||
ResentConfigurationProfileBatch = "resent_configuration_profile_batch",
|
||||
AddedSoftware = "added_software",
|
||||
EditedSoftware = "edited_software",
|
||||
DeletedSoftware = "deleted_software",
|
||||
|
|
|
|||
|
|
@ -885,6 +885,16 @@ const TAGGED_TEMPLATES = {
|
|||
</>
|
||||
);
|
||||
},
|
||||
resentConfigProfileBatch: (activity: IActivity) => {
|
||||
return (
|
||||
<>
|
||||
{" "}
|
||||
resent the <b>{activity.details?.profile_name}</b> configuration profile{" "}
|
||||
to {activity.details?.host_count}{" "}
|
||||
{(activity.details?.host_count ?? 0) > 1 ? "hosts." : "host."}
|
||||
</>
|
||||
);
|
||||
},
|
||||
addedSoftware: (activity: IActivity) => {
|
||||
return (
|
||||
<>
|
||||
|
|
@ -1375,6 +1385,9 @@ const getDetail = (activity: IActivity, isPremiumTier: boolean) => {
|
|||
case ActivityType.ResentConfigurationProfile: {
|
||||
return TAGGED_TEMPLATES.resentConfigProfile(activity);
|
||||
}
|
||||
case ActivityType.ResentConfigurationProfileBatch: {
|
||||
return TAGGED_TEMPLATES.resentConfigProfileBatch(activity);
|
||||
}
|
||||
case ActivityType.AddedSoftware: {
|
||||
return TAGGED_TEMPLATES.addedSoftware(activity);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue