gitlab-org--gitlab-foss/app/assets/javascripts/merge_conflicts/store/state.js

14 lines
322 B
JavaScript

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: {},
});