-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add canceled script and software install activities
- Loading branch information
1 parent
8c2560a
commit 6551545
Showing
6 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ls/cards/Activity/ActivityItems/CanceledScriptActivityItem/CanceledScriptActivityItem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
|
||
import { formatScriptNameForActivityItem } from "utilities/helpers"; | ||
|
||
import HostActivityItem from "../../HostActivityItem"; | ||
import { IHostActivityItemComponentProps } from "../../ActivityConfig"; | ||
|
||
const baseClass = "canceled-script-activity-item"; | ||
|
||
const CanceledScriptActivityItem = ({ | ||
activity, | ||
}: IHostActivityItemComponentProps) => { | ||
return ( | ||
<HostActivityItem className={baseClass} activity={activity}> | ||
<> | ||
<b>{activity.actor_full_name}</b> canceled{" "} | ||
<b>{formatScriptNameForActivityItem(activity.details?.script_name)}</b>{" "} | ||
script on this host. | ||
</> | ||
</HostActivityItem> | ||
); | ||
}; | ||
|
||
export default CanceledScriptActivityItem; |
1 change: 1 addition & 0 deletions
1
...tend/pages/hosts/details/cards/Activity/ActivityItems/CanceledScriptActivityItem/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "./CanceledScriptActivityItem"; |
21 changes: 21 additions & 0 deletions
21
...ActivityItems/CanceledSoftwareInstallActivityItem/CanceledSoftwareInstallActivityItem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from "react"; | ||
|
||
import HostActivityItem from "../../HostActivityItem"; | ||
import { IHostActivityItemComponentProps } from "../../ActivityConfig"; | ||
|
||
const baseClass = "canceled-software-install-activity-item"; | ||
|
||
const CanceledSoftwareInstallActivityItem = ({ | ||
activity, | ||
}: IHostActivityItemComponentProps) => { | ||
return ( | ||
<HostActivityItem className={baseClass} activity={activity}> | ||
<> | ||
<b>{activity.actor_full_name}</b> canceled{" "} | ||
<b>{activity.details?.software_title}</b> install on this host. | ||
</> | ||
</HostActivityItem> | ||
); | ||
}; | ||
|
||
export default CanceledSoftwareInstallActivityItem; |
1 change: 1 addition & 0 deletions
1
...s/hosts/details/cards/Activity/ActivityItems/CanceledSoftwareInstallActivityItem/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "./CanceledSoftwareInstallActivityItem"; |