This commit is contained in:
wh1te909
2022-06-03 00:37:51 +00:00
parent 63147ce116
commit b17aff8c6f

View File

@@ -142,6 +142,10 @@
<q-item clickable v-close-popup @click="clearCache">
<q-item-section>Clear Cache</q-item-section>
</q-item>
<!-- bulk recover agents -->
<q-item clickable v-close-popup @click="bulkRecoverAgents">
<q-item-section>Recover All Agents</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
@@ -262,6 +266,20 @@ export default {
.get("/core/clearcache/")
.then((r) => this.notifySuccess(r.data));
},
bulkRecoverAgents() {
this.$q
.dialog({
title: "Bulk Recover All Agents?",
message:
"This will restart the Tactical and Mesh Agent services on all agents",
cancel: true,
})
.onOk(() => {
this.$axios
.get("/agents/bulkrecovery/")
.then((r) => this.notifySuccess(r.data));
});
},
openHelp(mode) {
let url;
switch (mode) {