From 5dd64946b54bd0d181677b80b8ca6365118eddaf Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sun, 23 Feb 2020 09:58:10 +0000 Subject: [PATCH] fix refresh site bug --- web/src/views/Dashboard.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/web/src/views/Dashboard.vue b/web/src/views/Dashboard.vue index de12edf2..ba9629c9 100644 --- a/web/src/views/Dashboard.vue +++ b/web/src/views/Dashboard.vue @@ -177,7 +177,13 @@ export default { methods: { refreshEntireSite() { this.$store.dispatch("loadTree"); - this.loadAllClients(); + + if (this.allClientsActive) { + this.loadAllClients(); + } else { + this.loadFrame(this.selectedTree, false); + } + if (this.selectedAgentPk) { const pk = this.selectedAgentPk; this.$store.dispatch("loadSummary", pk); @@ -186,8 +192,9 @@ export default { this.$store.dispatch("loadInstalledSoftware", pk); } }, - loadFrame(activenode) { - this.$store.commit("destroySubTable"); + loadFrame(activenode, destroySub=true) { + if (destroySub) this.$store.commit("destroySubTable"); + let client, site, url; try { client = this.$refs.tree.meta[activenode].parent.key.split('|')[0];