debian-mirror-gitlab/app/assets/javascripts/notes/stores/modules/index.js

28 lines
536 B
JavaScript
Raw Normal View History

2018-11-08 19:23:39 +05:30
import * as actions from '../actions';
import * as getters from '../getters';
import mutations from '../mutations';
2018-12-05 23:21:45 +05:30
export default () => ({
2018-11-08 19:23:39 +05:30
state: {
discussions: [],
targetNoteHash: null,
lastFetchedAt: null,
// View layer
isToggleStateButtonLoading: false,
isNotesFetched: false,
// holds endpoints and permissions provided through haml
notesData: {
markdownDocsPath: '',
},
userData: {},
noteableData: {
current_user: {},
},
},
actions,
getters,
mutations,
2018-12-05 23:21:45 +05:30
});