Skip to content

Commit ff047fc

Browse files
pkp/pkp-lib#10363 Cover additional scenario
1 parent 3e6f5b4 commit ff047fc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/pages/workflow/components/primary/WorkflowSubmissionStatus.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,23 @@ const message = computed(() => {
131131
}),
132132
body: t('dashboard.minimumReviewsConfirmedDecisionNeeded'),
133133
};
134+
} else if (
135+
// when reviews are completed, but its not enough reviews yet
136+
// in this case does not make sense to indicate the 'COMPLETED' status
137+
// agreed on indicate only number of minimum reviews
138+
shouldMinimumReviewsBeConsidered &&
139+
[pkp.const.REVIEW_ROUND_STATUS_REVIEWS_COMPLETED].includes(
140+
currentReviewRound.statusId,
141+
)
142+
) {
143+
return {
144+
heading: t('notification.type.roundStatusTitle', {
145+
round: currentReviewRound.round,
146+
}),
147+
body1: t('dashboard.minimumConfirmedReviewsRequired', {
148+
number: props.contextMinReviewsPerSubmission,
149+
}),
150+
};
134151
}
135152
136153
return {

0 commit comments

Comments
 (0)