fix default tab not working if 'servers' is selected

This commit is contained in:
sadnub
2022-04-24 16:35:42 -04:00
parent 8c899db7ff
commit fdfef5012e
2 changed files with 4 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ export default function () {
showCommunityScripts: false,
agentDblClickAction: "",
agentUrlAction: null,
defaultAgentTblTab: "server",
defaultAgentTblTab: null,
clientTreeSort: "alphafail",
clientTreeSplitter: 20,
noCodeSign: false,

View File

@@ -490,10 +490,12 @@ export default {
selectedTree(newVal, oldVal) {
if (this.clearSearchWhenSwitching) this.clearFilter();
},
tab(newVal, oldVal) {
this.$store.dispatch("loadAgents");
},
},
methods: {
getTree() {
this.$store.dispatch("loadAgents");
this.$store.dispatch("loadTree");
},
clearTreeSelected() {
@@ -707,7 +709,6 @@ export default {
},
set(newVal) {
this.$store.commit("SET_DEFAULT_AGENT_TBL_TAB", newVal);
this.$store.dispatch("loadAgents");
this.$store.commit("destroySubTable");
},
},