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

35 lines
770 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: [],
2019-05-18 00:54:41 +05:30
convertedDisscussionIds: [],
2018-11-08 19:23:39 +05:30
targetNoteHash: null,
lastFetchedAt: null,
// View layer
isToggleStateButtonLoading: false,
isNotesFetched: false,
2018-12-13 13:39:08 +05:30
isLoading: true,
2018-11-08 19:23:39 +05:30
// holds endpoints and permissions provided through haml
notesData: {
markdownDocsPath: '',
},
userData: {},
noteableData: {
current_user: {},
2019-02-15 15:39:39 +05:30
preview_note_path: 'path/to/preview',
2018-11-08 19:23:39 +05:30
},
2018-12-13 13:39:08 +05:30
commentsDisabled: false,
2019-02-15 15:39:39 +05:30
resolvableDiscussionsCount: 0,
unresolvedDiscussionsCount: 0,
hasUnresolvedDiscussions: false,
2018-11-08 19:23:39 +05:30
},
actions,
getters,
mutations,
2018-12-05 23:21:45 +05:30
});