Editorial Workflow skeleton

This commit is contained in:
Cássio Zen
2016-09-06 13:04:17 -03:00
parent b0e62d1ca9
commit f0e608a209
14 changed files with 139 additions and 26 deletions

View File

@ -1,6 +1,8 @@
import yaml from 'js-yaml';
import _ from 'lodash';
import { currentBackend } from '../backends/backend';
import { authenticate } from '../actions/auth';
import * as publishModes from '../constants/publishModes';
import * as MediaProxy from '../valueObjects/MediaProxy';
export const CONFIG_REQUEST = 'CONFIG_REQUEST';
@ -70,9 +72,9 @@ function parseConfig(data) {
}
}
if (!('publish_workflow' in config)) {
if (!('publish_mode' in config) || _.values(publishModes).indexOf(config.publish_mode) === -1) {
// Make sure there is a publish workflow mode set
config['publish_workflow'] = 'simple';
config.publish_mode = publishModes.SIMPLE;
}
if (!('public_folder' in config)) {