From a4cffd96b73d20492411309cc3e9927bf4e6fffd Mon Sep 17 00:00:00 2001 From: sadnub Date: Wed, 21 Apr 2021 12:58:17 -0400 Subject: [PATCH] policy task and check rework. Added basic collector task implementation --- src/components/AutomatedTasksTab.vue | 20 ++++++++++++- .../automation/PolicyAutomatedTasksTab.vue | 16 ++++++++++ .../automation/modals/PolicyStatus.vue | 2 ++ .../modals/tasks/AddAutomatedTask.vue | 30 +++++++++++++++++++ 4 files changed, 67 insertions(+), 1 deletion(-) diff --git a/src/components/AutomatedTasksTab.vue b/src/components/AutomatedTasksTab.vue index c4d99e7..babc374 100644 --- a/src/components/AutomatedTasksTab.vue +++ b/src/components/AutomatedTasksTab.vue @@ -60,6 +60,14 @@ + + @@ -170,6 +178,13 @@ This task is managed by a policy + + + + + The task updates a custom field on the agent + + @@ -199,6 +214,8 @@ Will sync on next agent checkin Synced with agent Pending deletion on agent + Waiting for task creation on agent + state.automatedTasks, }), tasks() { - return this.automatedTasks.autotasks; + return this.automatedTasks.autotasks.filter(task => task.sync_status !== "pendingdeletion"); }, }, }; diff --git a/src/components/automation/PolicyAutomatedTasksTab.vue b/src/components/automation/PolicyAutomatedTasksTab.vue index 30a6fe1..90a3943 100644 --- a/src/components/automation/PolicyAutomatedTasksTab.vue +++ b/src/components/automation/PolicyAutomatedTasksTab.vue @@ -61,6 +61,15 @@ + + +