From 99566d7dccedcf007fcd8213c5a36eecd233dd92 Mon Sep 17 00:00:00 2001 From: sadnub Date: Fri, 22 Oct 2021 12:02:15 -0400 Subject: [PATCH] rework patch reset policy modal to comp api and take into account permissions --- src/api/automation.js | 8 + .../modals/coresettings/ResetPatchPolicy.vue | 227 ++++++++++-------- 2 files changed, 130 insertions(+), 105 deletions(-) create mode 100644 src/api/automation.js diff --git a/src/api/automation.js b/src/api/automation.js new file mode 100644 index 0000000..d72946a --- /dev/null +++ b/src/api/automation.js @@ -0,0 +1,8 @@ +import axios from "axios" + +const baseUrl = "/automation" + +export async function sendPatchPolicyReset(payload) { + const { data } = await axios.post(`${baseUrl}/patchpolicy/reset/`, payload) + return data +} \ No newline at end of file diff --git a/src/components/modals/coresettings/ResetPatchPolicy.vue b/src/components/modals/coresettings/ResetPatchPolicy.vue index 0382e0b..8f77197 100644 --- a/src/components/modals/coresettings/ResetPatchPolicy.vue +++ b/src/components/modals/coresettings/ResetPatchPolicy.vue @@ -1,6 +1,6 @@ \ No newline at end of file