debian-mirror-gitlab/app/assets/javascripts/merge_conflicts/store/state.js

14 lines
303 B
JavaScript
Raw Normal View History

2021-04-17 20:07:23 +05:30
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: {},
});