feat: Change availability status from sidebar (#1288)
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
committed by
GitHub
parent
f61b731fb3
commit
127ffda762
@@ -105,6 +105,13 @@ export const actions = {
|
||||
}
|
||||
},
|
||||
|
||||
updateAvailability: ({ commit }, { availability }) => {
|
||||
authAPI.updateAvailability({ availability }).then(response => {
|
||||
setUser(response.data, getHeaderExpiry(response));
|
||||
commit(types.default.SET_CURRENT_USER);
|
||||
});
|
||||
},
|
||||
|
||||
setCurrentAccountId({ commit }, accountId) {
|
||||
commit(types.default.SET_CURRENT_ACCOUNT_ID, accountId);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user