feat: Add store to manage Articles (#5048)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Muhsin Keloth
2022-07-27 12:29:11 +05:30
committed by GitHub
parent bfca4852c8
commit 6295f5fd61
10 changed files with 541 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { getters } from './getters';
import { actions } from './actions';
import { mutations } from './mutations';
export const defaultHelpCenterFlags = {
isFetching: false,
isUpdating: false,
isDeleting: false,
};
const state = {
articles: {
byId: {},
allIds: [],
uiFlags: {
byId: {},
},
},
uiFlags: {
allFetched: false,
isFetching: false,
},
};
export default {
namespaced: true,
state,
getters,
actions,
mutations,
};