debian-mirror-gitlab/app/assets/javascripts/merge_conflicts/store/state.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
322 B
JavaScript
Raw Normal View History

2022-04-04 11:22:00 +05:30
import { getCookie } from '~/lib/utils/common_utils';
2021-04-17 20:07:23 +05:30
import { VIEW_TYPES } from '../constants';
2022-04-04 11:22:00 +05:30
const diffViewType = getCookie('diff_view');
2021-04-17 20:07:23 +05:30
export default () => ({
isLoading: true,
hasError: false,
isSubmitting: false,
isParallel: diffViewType === VIEW_TYPES.PARALLEL,
diffViewType,
conflictsData: {},
});