-
+
+
+ Enable ICMP echo requests in the local firewall
+
+
diff --git a/web/src/components/modals/clients/DeleteClient.vue b/web/src/components/modals/clients/DeleteClient.vue
index e1971f771c..64e5381292 100644
--- a/web/src/components/modals/clients/DeleteClient.vue
+++ b/web/src/components/modals/clients/DeleteClient.vue
@@ -55,6 +55,7 @@ export default {
return {
siteOptions: [],
selectedSite: null,
+ agentCount: 0,
};
},
methods: {
@@ -112,6 +113,7 @@ export default {
},
getSites() {
this.$axios.get("/clients/clients/").then(r => {
+ this.agentCount = this.getAgentCount(r.data, this.type, this.object.id);
r.data.forEach(client => {
// remove client that is being deleted from options
if (this.type === "client") {
diff --git a/web/src/mixins/mixins.js b/web/src/mixins/mixins.js
index 65a7399f48..48345de304 100644
--- a/web/src/mixins/mixins.js
+++ b/web/src/mixins/mixins.js
@@ -147,6 +147,19 @@ export default {
this.notifyError("There was an issue getting Custom Fields");
});
},
+ getAgentCount(data, type, id) {
+ if (type === "client") {
+ return data.find(i => id === i.id).agent_count
+ } else {
+ const sites = data.map(i => i.sites)
+ for (let i of sites) {
+ for (let k of i) {
+ if (k.id === id) return k.agent_count;
+ }
+ }
+ return 0;
+ }
+ },
formatCustomFields(fields, values) {
let tempArray = [];
diff --git a/web/src/store/index.js b/web/src/store/index.js
index 21c10a2373..26e0d29986 100644
--- a/web/src/store/index.js
+++ b/web/src/store/index.js
@@ -34,6 +34,7 @@ export default function () {
defaultAgentTblTab: "server",
clientTreeSort: "alphafail",
clientTreeSplitter: 11,
+ noCodeSign: false,
},
getters: {
clientTreeSplitterModel(state) {
@@ -153,6 +154,9 @@ export default function () {
},
SET_CLIENT_TREE_SORT(state, val) {
state.clientTreeSort = val
+ },
+ SET_NO_CODE_SIGN(state, val) {
+ state.noCodeSign = val
}
},
actions: {
@@ -285,7 +289,9 @@ export default function () {
if (state.clientTreeSort === "alphafail") {
// move failing clients to the top
- const sortedByFailing = output.sort(a => a.color === "negative" ? -1 : 1);
+ const failing = output.filter(i => i.color === "negative" || i.color === "warning");
+ const ok = output.filter(i => i.color !== "negative" && i.color !== "warning");
+ const sortedByFailing = [...failing, ...ok];
commit("loadTree", sortedByFailing);
} else {
commit("loadTree", output);
diff --git a/web/src/views/Dashboard.vue b/web/src/views/Dashboard.vue
index d64d74f885..9c16bf1bae 100644
--- a/web/src/views/Dashboard.vue
+++ b/web/src/views/Dashboard.vue
@@ -721,6 +721,7 @@ export default {
this.currentTRMMVersion = r.data.trmm_version;
this.$store.commit("SET_AGENT_DBLCLICK_ACTION", r.data.dbl_click_action);
this.$store.commit("setShowCommunityScripts", r.data.show_community_scripts);
+ this.$store.commit("SET_NO_CODE_SIGN", r.data.no_code_sign);
});
},
showToggleMaintenance(node) {