diff --git a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js index 71a6cea9..736ccdd8 100644 --- a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js +++ b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js @@ -47,6 +47,20 @@ export function getHeaderItems({ }); } + if ( + submission.status !== pkp.const.STATUS_PUBLISHED && + (submission.stageId === pkp.const.WORKFLOW_STAGE_ID_EDITING || + submission.stageId === pkp.const.WORKFLOW_STAGE_ID_PRODUCTION) + ) { + actions.push({ + component: 'WorkflowActionButton', + props: { + label: t('common.preview'), + action: Actions.WORKFLOW_VIEW_PUBLISHED_SUBMISSION, + }, + }); + } + if (permissions.canAccessEditorialHistory) { actions.push({ component: 'WorkflowActionButton',