782165478b
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
43 lines
714 B
JavaScript
Executable file
43 lines
714 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: {
|
|
allArticlesCount: 0,
|
|
mineArticlesCount: 0,
|
|
draftArticlesCount: 0,
|
|
archivedArticlesCount: 0,
|
|
},
|
|
|
|
portals: {
|
|
byId: {},
|
|
allIds: [],
|
|
uiFlags: {
|
|
byId: {
|
|
// 1: { isFetching: false, isUpdating: false, isDeleting: false },
|
|
},
|
|
},
|
|
meta: {
|
|
byId: {},
|
|
},
|
|
},
|
|
uiFlags: {
|
|
allFetched: false,
|
|
isFetching: false,
|
|
},
|
|
};
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
actions,
|
|
mutations,
|
|
};
|