mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-01-19 19:40:50 +00:00
add bulk recovery ui amidaware/tacticalrmm@c404ae7ac8
This commit is contained in:
@@ -142,6 +142,10 @@
|
|||||||
<q-item clickable v-close-popup @click="clearCache">
|
<q-item clickable v-close-popup @click="clearCache">
|
||||||
<q-item-section>Clear Cache</q-item-section>
|
<q-item-section>Clear Cache</q-item-section>
|
||||||
</q-item>
|
</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-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
@@ -262,6 +266,20 @@ export default {
|
|||||||
.get("/core/clearcache/")
|
.get("/core/clearcache/")
|
||||||
.then((r) => this.notifySuccess(r.data));
|
.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) {
|
openHelp(mode) {
|
||||||
let url;
|
let url;
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user