+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ee/app/assets/javascripts/threat_monitoring/components/policy_editor/scan_result_policy/scan_result_policy_editor.vue b/ee/app/assets/javascripts/threat_monitoring/components/policy_editor/scan_result_policy/scan_result_policy_editor.vue
index b5eb31e20efe53a48801151e312f06de8c8fcbef..f11806712d019bb26cd4c3a04463687d22f4d3c4 100644
--- a/ee/app/assets/javascripts/threat_monitoring/components/policy_editor/scan_result_policy/scan_result_policy_editor.vue
+++ b/ee/app/assets/javascripts/threat_monitoring/components/policy_editor/scan_result_policy/scan_result_policy_editor.vue
@@ -19,6 +19,7 @@ import {
import PolicyEditorLayout from '../policy_editor_layout.vue';
import { assignSecurityPolicyProject, modifyPolicy } from '../utils';
import DimDisableContainer from '../dim_disable_container.vue';
+import PolicyActionBuilder from './policy_action_builder.vue';
import { DEFAULT_SCAN_RESULT_POLICY, fromYaml, toYaml } from './lib';
export default {
@@ -49,6 +50,7 @@ export default {
GlFormInput,
GlFormTextarea,
GlAlert,
+ PolicyActionBuilder,
PolicyEditorLayout,
DimDisableContainer,
},
@@ -116,6 +118,9 @@ export default {
},
},
methods: {
+ updateAction(actionIndex, values) {
+ this.policy.actions.splice(actionIndex, 1, values);
+ },
handleError(error) {
if (error.message.toLowerCase().includes('graphql')) {
this.$emit('error', GRAPHQL_ERROR_MESSAGE);
@@ -264,6 +269,15 @@ export default {