Skip to content

Commit

Permalink
Refs #124587 updated workflow mapping to reference our naming for pub…
Browse files Browse the repository at this point in the history
…lished
  • Loading branch information
ichim-david committed Jun 22, 2021
1 parent 3a4c4dc commit 25862dd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/customizations/volto/constants/Workflows.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,24 @@ import { last, split } from 'lodash';

export default function getWorkflowMapping(url, current) {
const mapping = {
published: { value: 'public', label: 'Public', color: '#007bc1', url },
publish: { value: 'public', label: 'Public', color: '#007bc1', url },
private: { value: 'private', label: 'Private', color: '#ed4033', url },
pending: { value: 'pending', label: 'Pending', color: '#f6a808', url },
send_back: { value: 'private', label: 'Private', color: '#ed4033', url },
retract: { value: 'private', label: 'Private', color: '#ed4033', url },
retract: { value: 'retract', label: 'Retract', color: '#ed4033', url },
submit: { value: 'review', label: 'Review', color: '#f4e037', url },
retracted: {
value: 'retracted',
label: 'Retracted',
color: '#ed4033',
url,
},
published: {
value: 'published',
label: 'Published',
color: '#007bc1',
url,
},
};

if (url) {
Expand Down

0 comments on commit 25862dd

Please sign in to comment.