- {availablePolicies && availablePolicies.length > 0 ? (
-
-
Choose which policies you would like to listen to:
- {policyItems &&
- policyItems.map((policyItem) => {
- const { isChecked, name, id } = policyItem;
- return (
-
- updatePolicyItems(policyItem.id)}
- >
- {name}
-
-
- );
- })}
-
- ) : (
-
-
You have no policies.
-
Add a policy to turn on automations.
-
- )}
-
-
+
+ setPolicyAutomationEnabled(!policyAutomationEnabled)
}
- placeholder={"https://server.com/example"}
- tooltip="Provide a URL to deliver a webhook request to."
+ inactiveText={"Vulnerability automations disabled"}
+ activeText={"Vulnerability automations enabled"}
/>
-
-
+
+
+ {availablePolicies && availablePolicies.length > 0 ? (
+
+
+
+ Choose which policies you would like to listen to:
+
+
+ {policyItems &&
+ policyItems.map((policyItem) => {
+ const { isChecked, name, id } = policyItem;
+ return (
+
+ updatePolicyItems(policyItem.id)}
+ >
+ {name}
+
+
+ );
+ })}
+
+ ) : (
+
+
You have no policies.
+
Add a policy to turn on automations.
+
+ )}
+
+
+
+
+
+ {!policyAutomationEnabled && (
+
+ )}
+