debian-mirror-gitlab/app/assets/javascripts/merge_conflicts/store/state.js
2021-04-17 20:07:23 +05:30

13 lines
303 B
JavaScript

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