static-cms/src/constants/publishModes.js

19 lines
508 B
JavaScript
Raw Normal View History

2016-09-09 17:15:58 -03:00
import { Map, OrderedMap } from 'immutable';
2016-09-08 16:18:38 -03:00
// Create/edit workflow modes
2016-08-29 19:32:56 -03:00
export const SIMPLE = 'simple';
2016-09-06 13:04:17 -03:00
export const EDITORIAL_WORKFLOW = 'editorial_workflow';
2016-09-08 16:18:38 -03:00
// Available status
2016-09-09 17:15:58 -03:00
export const status = OrderedMap({
2016-09-08 16:18:38 -03:00
DRAFT: 'draft',
PENDING_REVIEW: 'pending_review',
PENDING_PUBLISH: 'pending_publish',
2016-09-09 17:15:58 -03:00
});
2016-09-08 16:18:38 -03:00
export const statusDescriptions = Map({
2016-09-09 17:15:58 -03:00
[status.get('DRAFT')]: 'Draft',
[status.get('PENDING_REVIEW')]: 'Waiting for Review',
[status.get('PENDING_PUBLISH')]: 'Waiting to go live',
2016-09-08 16:18:38 -03:00
});