mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-02-22 04:11:03 +00:00
don't change tab when using site refresh button
This commit is contained in:
@@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user