feat: Vite + vue 3 💚 (#10047)
Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import Vue from 'vue';
|
||||
import types from '../mutation-types';
|
||||
import authAPI from '../../api/auth';
|
||||
|
||||
@@ -208,29 +207,29 @@ export const mutations = {
|
||||
}
|
||||
return account;
|
||||
});
|
||||
Vue.set(_state, 'currentUser', {
|
||||
_state.currentUser = {
|
||||
..._state.currentUser,
|
||||
accounts,
|
||||
});
|
||||
};
|
||||
},
|
||||
[types.CLEAR_USER](_state) {
|
||||
_state.currentUser = initialState.currentUser;
|
||||
},
|
||||
[types.SET_CURRENT_USER](_state, currentUser) {
|
||||
Vue.set(_state, 'currentUser', currentUser);
|
||||
_state.currentUser = currentUser;
|
||||
},
|
||||
[types.SET_CURRENT_USER_UI_SETTINGS](_state, { uiSettings }) {
|
||||
Vue.set(_state, 'currentUser', {
|
||||
_state.currentUser = {
|
||||
..._state.currentUser,
|
||||
ui_settings: {
|
||||
..._state.currentUser.ui_settings,
|
||||
...uiSettings,
|
||||
},
|
||||
});
|
||||
};
|
||||
},
|
||||
|
||||
[types.SET_CURRENT_USER_UI_FLAGS](_state, { isFetching }) {
|
||||
Vue.set(_state, 'uiFlags', { isFetching });
|
||||
_state.uiFlags = { isFetching };
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user