diff --git a/web/src/components/AgentTable.vue b/web/src/components/AgentTable.vue index c26615f5..c1e9eeff 100644 --- a/web/src/components/AgentTable.vue +++ b/web/src/components/AgentTable.vue @@ -41,9 +41,9 @@ @@ -277,8 +277,8 @@ export default { }; }, methods: { - rowDoubleClicked(agentid) { - this.$store.commit("setActiveRow", agentid); + rowDoubleClicked(pk) { + this.$store.commit("setActiveRow", pk); this.$q.loading.show(); // give time for store to change active row setTimeout(()=>{ @@ -406,8 +406,8 @@ export default { }); }); }, - agentRowSelected(pk, agentid) { - this.$store.commit("setActiveRow", agentid); + agentRowSelected(pk) { + this.$store.commit("setActiveRow", pk); this.$store.dispatch("loadSummary", pk); this.$store.dispatch("loadChecks", pk); this.$store.dispatch("loadWinUpdates", pk); diff --git a/web/src/store/store.js b/web/src/store/store.js index 535bb73f..b70fae96 100644 --- a/web/src/store/store.js +++ b/web/src/store/store.js @@ -17,7 +17,7 @@ export const store = new Vuex.Store({ clients: {}, tree: [], treeReady: false, - selectedRow: "", + selectedRow: null, agentSummary: {}, winUpdates: {}, agentChecks: {}, @@ -52,8 +52,8 @@ export const store = new Vuex.Store({ AGENT_TABLE_LOADING(state, visible) { state.agentTableLoading = visible; }, - setActiveRow(state, agentid) { - state.selectedRow = agentid; + setActiveRow(state, pk) { + state.selectedRow = pk; }, retrieveToken(state, { token, username }) { state.token = token;