fix refresh site bug
This commit is contained in:
parent
7d2f0dd8a7
commit
5dd64946b5
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue