debian-mirror-gitlab/app/assets/javascripts/merge_conflicts/store/state.js
2022-04-04 11:22:00 +05:30

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