Chatwoot/app/javascript/widget/store/modules/conversationv2/index.js
2021-09-20 10:13:39 +05:30

28 lines
483 B
JavaScript
Executable file

import { getters } from './getters';
import { actions } from './actions';
import { mutations } from './mutations';
const state = {
conversations: {
byId: {},
allIds: [],
uiFlags: {
byId: {
// 1: { allFetched: false, isAgentTyping: false, isFetching: false },
},
},
},
uiFlags: {
allFetched: false,
isFetching: false,
isCreating: true,
},
};
export default {
namespaced: true,
state,
getters,
actions,
mutations,
};