mirror of
https://github.com/owntracks/frontend.git
synced 2026-05-21 04:22:48 +00:00
Reset selected device when changing user
This commit is contained in:
@@ -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");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user