Reset selected device when changing user

This commit is contained in:
Linus Groh
2019-09-28 14:06:37 +01:00
parent 2d9ad44a23
commit 81d9b63dd4

View File

@@ -147,6 +147,7 @@ const getRecorderVersion = async ({ commit }) => {
* @param {string} user Name of the new selected user
*/
const setSelectedUser = async ({ commit, dispatch }, user) => {
commit(types.SET_SELECTED_DEVICE, null);
commit(types.SET_SELECTED_USER, user);
await dispatch("reloadData");
};