diff --git a/src/components/automation/AutomationManager.vue b/src/components/automation/AutomationManager.vue
index 029d6bb..b7f5532 100644
--- a/src/components/automation/AutomationManager.vue
+++ b/src/components/automation/AutomationManager.vue
@@ -127,6 +127,13 @@
Policy Exclusions
+
+
+
+
+ Sync Policies
+
+
@@ -450,6 +457,24 @@ export default {
this.refresh();
});
},
+ syncPolicies(policy) {
+ this.$q.loading.show();
+
+ const data = {
+ policy: policy.id,
+ };
+
+ this.$axios
+ .post(`/automation/sync/`, data)
+ .then(r => {
+ this.$q.loading.hide();
+ this.notifySuccess("Sync request sent successfully. The task will be run on all affected agents");
+ })
+ .catch(error => {
+ this.$q.loading.hide();
+ this.notifyError("An Error occured while sending policy sync request");
+ });
+ },
toggleCheckbox(policy, type) {
this.$q.loading.show();
let text = "";