mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-01-20 03:50:21 +00:00
fix default tab not working if 'servers' is selected
This commit is contained in:
@@ -23,7 +23,7 @@ export default function () {
|
||||
showCommunityScripts: false,
|
||||
agentDblClickAction: "",
|
||||
agentUrlAction: null,
|
||||
defaultAgentTblTab: "server",
|
||||
defaultAgentTblTab: null,
|
||||
clientTreeSort: "alphafail",
|
||||
clientTreeSplitter: 20,
|
||||
noCodeSign: false,
|
||||
|
||||
@@ -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");
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user