import mirrorCreator from 'mirror-creator';

export const duplicationModes = mirrorCreator([
  'OBJECT',
  'COURSE',
]);

// These are mirrored in app/helpers/course/object_duplications_helper.rb
export const duplicableItemTypes = mirrorCreator([
  'ASSESSMENT',
  'TAB',
  'CATEGORY',
  'SURVEY',
  'ACHIEVEMENT',
  'FOLDER',
  'MATERIAL',
  'VIDEO',
  'VIDEO_TAB',
]);

// These are mirrored in app/helpers/course/object_duplications_helper.rb
export const itemSelectorPanels = mirrorCreator([
  'TARGET_COURSE',
  'ASSESSMENTS',
  'SURVEYS',
  'ACHIEVEMENTS',
  'MATERIALS',
  'VIDEOS',
]);

export const formNames = mirrorCreator([
  'NEW_COURSE',
]);

const actionTypes = mirrorCreator([
  'LOAD_OBJECTS_LIST_REQUEST',
  'LOAD_OBJECTS_LIST_SUCCESS',
  'LOAD_OBJECTS_LIST_FAILURE',
  'DUPLICATE_ITEMS_REQUEST',
  'DUPLICATE_ITEMS_SUCCESS',
  'DUPLICATE_ITEMS_FAILURE',
  'DUPLICATE_COURSE_REQUEST',
  'DUPLICATE_COURSE_SUCCESS',
  'DUPLICATE_COURSE_FAILURE',
  'SHOW_DUPLICATE_ITEMS_CONFIRMATION',
  'HIDE_DUPLICATE_ITEMS_CONFIRMATION',
  'SET_ITEM_SELECTED_BOOLEAN',
  'SET_TARGET_COURSE_ID',
  'SET_DUPLICATION_MODE',
  'SET_ITEM_SELECTOR_PANEL',
]);

export default actionTypes;

import mirrorCreator from 'mirror-creator';

export const duplicationModes = mirrorCreator([
  'OBJECT',
  'COURSE',
]);

// These are mirrored in app/helpers/course/object_duplications_helper.rb
export const duplicableItemTypes = mirrorCreator([
  'ASSESSMENT',
  'TAB',
  'CATEGORY',
  'SURVEY',
  'ACHIEVEMENT',
  'FOLDER',
  'MATERIAL',
  'VIDEO',
  'VIDEO_TAB',
]);

// These are mirrored in app/helpers/course/object_duplications_helper.rb
export const itemSelectorPanels = mirrorCreator([
  'ASSESSMENTS',
  'SURVEYS',
  'ACHIEVEMENTS',
  'MATERIALS',
  'VIDEOS',
]);

export const formNames = mirrorCreator([
  'NEW_COURSE',
]);

const actionTypes = mirrorCreator([
  'LOAD_OBJECTS_LIST_REQUEST',
  'LOAD_OBJECTS_LIST_SUCCESS',
  'LOAD_OBJECTS_LIST_FAILURE',
  'DUPLICATE_ITEMS_REQUEST',
  'DUPLICATE_ITEMS_SUCCESS',
  'DUPLICATE_ITEMS_FAILURE',
  'DUPLICATE_COURSE_REQUEST',
  'DUPLICATE_COURSE_SUCCESS',
  'DUPLICATE_COURSE_FAILURE',
  'SHOW_DUPLICATE_ITEMS_CONFIRMATION',
  'HIDE_DUPLICATE_ITEMS_CONFIRMATION',
  'SET_ITEM_SELECTED_BOOLEAN',
  'SET_TARGET_COURSE_ID',
  'SET_DUPLICATION_MODE',
  'SET_ITEM_SELECTOR_PANEL',
]);

export default actionTypes;

Remove token for absent panel in duplication frontend
Remove token for absent panel in duplication frontend

This should have been omitted from #2704
