Chatwoot/app/javascript/dashboard/store/modules/helpCenterPortals/index.js
2022-08-08 15:47:32 +05:30

42 lines
668 B
JavaScript
Executable file

import { getters } from './getters';
import { actions } from './actions';
import { mutations } from './mutations';
export const defaultPortalFlags = {
isFetching: false,
isUpdating: false,
isDeleting: false,
};
const state = {
meta: {
count: 0,
currentPage: 1,
},
portals: {
byId: {},
allIds: [],
uiFlags: {
byId: {
// 1: { isFetching: false, isUpdating: false, isDeleting: false },
},
},
meta: {
byId: {},
},
selectedPortalId: null,
},
uiFlags: {
allFetched: false,
isFetching: false,
},
};
export default {
namespaced: true,
state,
getters,
actions,
mutations,
};