From ebb08965875c2246af37a719e9a56fc69e0e09f2 Mon Sep 17 00:00:00 2001 From: sadnub Date: Fri, 30 Oct 2020 12:37:38 -0400 Subject: [PATCH] feat: allow one time tasks and added task cleanup script. Various fixes and rework --- .../automation/PolicyAutomatedTasksTab.vue | 35 ++++------------- .../modals/tasks/AddAutomatedTask.vue | 39 ++++++++++++++++++- 2 files changed, 45 insertions(+), 29 deletions(-) diff --git a/src/components/automation/PolicyAutomatedTasksTab.vue b/src/components/automation/PolicyAutomatedTasksTab.vue index 737fd85..a04e467 100644 --- a/src/components/automation/PolicyAutomatedTasksTab.vue +++ b/src/components/automation/PolicyAutomatedTasksTab.vue @@ -74,24 +74,14 @@ Edit - + Delete - + @@ -112,15 +102,14 @@ /> {{ props.row.name }} - {{ props.row.last_run }} - Has not run yet - {{ props.row.task_type }} + {{ props.row.schedule }} See Status + >See Status {{ props.row.assigned_check.readable_desc }} @@ -136,11 +125,7 @@ - + @@ -168,12 +153,6 @@ export default { columns: [ { name: "enabled", align: "left", field: "enabled" }, { name: "name", label: "Name", field: "name", align: "left" }, - { - name: "datetime", - label: "Last Run Time", - field: "last_run", - align: "left", - }, { name: "schedule", label: "Schedule", diff --git a/src/components/modals/tasks/AddAutomatedTask.vue b/src/components/modals/tasks/AddAutomatedTask.vue index c2c1e83..4ac248d 100644 --- a/src/components/modals/tasks/AddAutomatedTask.vue +++ b/src/components/modals/tasks/AddAutomatedTask.vue @@ -10,7 +10,7 @@

Settings -> Script Manager

- +
Add Automated Task
@@ -68,6 +68,7 @@ +
@@ -82,6 +83,36 @@
+
+
+ + + +
+ +
+
+
+
When Check Fails: