Skip to content

Commit

Permalink
pkp/pkp-lib#10970 Fix statuses for review assignments, and use submis…
Browse files Browse the repository at this point in the history
…sionStageId
  • Loading branch information
jardakotesovec authored and ipula committed Feb 27, 2025
1 parent 3c7e1f5 commit 1b2cd0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const actionLabel = computed(() => {
[
pkp.const.WORKFLOW_STAGE_ID_EDITING,
pkp.const.WORKFLOW_STAGE_ID_PRODUCTION,
].includes(props.item.stageId)
].includes(props.item.submissionStageId)
) {
// It the review assignment is incomplete, show no action
// for complete scenario it will fallback to the 'View' below
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export function useDashboardConfigEditorialActivity() {
[
pkp.const.WORKFLOW_STAGE_ID_EDITING,
pkp.const.WORKFLOW_STAGE_ID_PRODUCTION,
].includes(reviewAssignment.stageId)
].includes(reviewAssignment.submissionStageId)
) {
// It the review assignment is incomplete
if (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/dashboard/mocks/reviewAssignmentScenariosMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ export const ReviewAssignmentEditorialActivityScenario = [
getReviewAssignmentFullMock({
submissionId: 11,
statusId: pkp.const.REVIEW_ASSIGNMENT_STATUS_ACCEPTED,
stageId: pkp.const.WORKFLOW_STAGE_ID_PRODUCTION,
submissionStageId: pkp.const.WORKFLOW_STAGE_ID_PRODUCTION,
}),
// When moved to copyediting / production stage
// When the review was declined - same indication for declined regardless of the stage
getReviewAssignmentFullMock({
submissionId: 12,
statusId: pkp.const.REVIEW_ASSIGNMENT_STATUS_DECLINED,
stageId: pkp.const.WORKFLOW_STAGE_ID_PRODUCTION,
submissionStageId: pkp.const.WORKFLOW_STAGE_ID_PRODUCTION,
}),
];

0 comments on commit 1b2cd0e

Please sign in to comment.