This commit is contained in:
wh1te909
2021-01-29 00:34:18 +00:00
parent 03b2982128
commit a65eb62a54
3 changed files with 63 additions and 6 deletions

View File

@@ -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