Skip to content

Commit 24041f3

Browse files
pkp/pkp-lib# Consider scheduled/published states to the copyediting stage for status indication
1 parent 61e9245 commit 24041f3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/composables/useSubmission.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,14 @@ export function useSubmission() {
263263
case pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW:
264264
return ExtendedStages.EXTERNAL_REVIEW;
265265
case pkp.const.WORKFLOW_STAGE_ID_EDITING:
266-
return ExtendedStages.EDITING;
266+
switch (submission.status) {
267+
case pkp.const.STATUS_SCHEDULED:
268+
return ExtendedStages.PRODUCTION_SCHEDULED;
269+
case pkp.const.STATUS_PUBLISHED:
270+
return ExtendedStages.PRODUCTION_PUBLISHED;
271+
default:
272+
return ExtendedStages.EDITING;
273+
}
267274
case pkp.const.WORKFLOW_STAGE_ID_PRODUCTION:
268275
switch (submission.status) {
269276
case pkp.const.STATUS_QUEUED:

0 commit comments

Comments
 (0)