Welcome to mirror list, hosted at ThFree Co, Russian Federation.

state.js « store « merge_conflicts « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7a2e28183a7a04bd41c522b6594930465ea11523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { getCookie } from '~/lib/utils/common_utils';
import { VIEW_TYPES } from '../constants';

const diffViewType = getCookie('diff_view');

export default () => ({
  isLoading: true,
  hasError: false,
  isSubmitting: false,
  isParallel: diffViewType === VIEW_TYPES.PARALLEL,
  diffViewType,
  conflictsData: {},
});