editor workflow ui adjustments

This commit is contained in:
Cássio Zen
2016-09-09 17:15:58 -03:00
parent b6874152d9
commit c84d538eb6
6 changed files with 107 additions and 64 deletions

View File

@ -1,18 +1,18 @@
import { Map } from 'immutable';
import { Map, OrderedMap } from 'immutable';
// Create/edit workflow modes
export const SIMPLE = 'simple';
export const EDITORIAL_WORKFLOW = 'editorial_workflow';
// Available status
export const status = {
export const status = OrderedMap({
DRAFT: 'draft',
PENDING_REVIEW: 'pending_review',
PENDING_PUBLISH: 'pending_publish',
};
});
export const statusDescriptions = Map({
[status.DRAFT]: 'Draft',
[status.PENDING_REVIEW]: 'Waiting for Review',
[status.PENDING_PUBLISH]: 'Waiting to go live',
[status.get('DRAFT')]: 'Draft',
[status.get('PENDING_REVIEW')]: 'Waiting for Review',
[status.get('PENDING_PUBLISH')]: 'Waiting to go live',
});