From fc064c0ea30b100670408b00aadaa7b1d39bdf05 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 29 Jan 2021 00:34:18 +0000 Subject: [PATCH] checkrunner changes wh1te909/rmmagent@10a0935f1b75c0f43cbd1689f3f4f1f45a42beb6 --- src/components/AgentTable.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/AgentTable.vue b/src/components/AgentTable.vue index 0b83d7f..cbcc2e2 100644 --- a/src/components/AgentTable.vue +++ b/src/components/AgentTable.vue @@ -541,10 +541,17 @@ export default { window.open(url, "", "scrollbars=no,location=no,status=no,toolbar=no,menubar=no,width=1280,height=826"); }, runChecks(pk) { - axios + this.$q.loading.show(); + this.$axios .get(`/checks/runchecks/${pk}/`) - .then(r => this.notifySuccess(`Checks will now be re-run on ${r.data}`)) - .catch(e => this.notifyError(e.response.data)); + .then(r => { + this.$q.loading.hide(); + this.notifySuccess(r.data); + }) + .catch(e => { + this.$q.loading.hide(); + this.notifyError(e.response.data); + }); }, removeAgent(pk, name) { this.$q