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: 8f700f58e545340f27318b462c0d4e853d4492a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import Cookies from 'js-cookie';
import { VIEW_TYPES } from '../constants';

const diffViewType = Cookies.get('diff_view');

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