don't change tab when using site refresh button

This commit is contained in:
wh1te909
2021-01-22 23:27:28 +00:00
parent 9a031e5d0a
commit e7232bf2fa

View File

@@ -548,7 +548,7 @@ export default {
},
refreshEntireSite() {
this.$store.dispatch("loadTree");
this.getDashInfo();
this.getDashInfo(false);
this.getAgentCounts();
if (this.allClientsActive) {
@@ -675,13 +675,13 @@ export default {
this.workstationOfflineCount = r.data.total_workstation_offline_count;
});
},
getDashInfo() {
getDashInfo(setDefaultTab = true) {
this.$store.dispatch("getDashInfo").then(r => {
this.darkMode = r.data.dark_mode;
this.$q.dark.set(this.darkMode);
this.currentTRMMVersion = r.data.trmm_version;
this.$store.commit("SET_AGENT_DBLCLICK_ACTION", r.data.dbl_click_action);
this.$store.commit("SET_DEFAULT_AGENT_TBL_TAB", r.data.default_agent_tbl_tab);
if (setDefaultTab) this.$store.commit("SET_DEFAULT_AGENT_TBL_TAB", r.data.default_agent_tbl_tab);
this.$store.commit("setShowCommunityScripts", r.data.show_community_scripts);
});
},