Skip to content

Commit 1485b99

Browse files
committed
pkp/pkp-lib#4787 OMP restrict suggestion at internal review stage
1 parent f3e04d9 commit 1485b99

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

src/managers/ReviewerSuggestionManager/reviewerSuggestionManagerStore.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ export const useReviewerSuggestionManagerStore = defineComponentStore(
7878
function atActiveReviewStage() {
7979
return (
8080
props.reviewRoundId &&
81-
(props.submissionStageId ===
82-
pkp.const.WORKFLOW_STAGE_ID_INTERNAL_REVIEW ||
83-
props.submissionStageId ===
84-
pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW) &&
81+
props.submissionStageId ===
82+
pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW &&
8583
props.submissionStageId === props.submission.stageId
8684
);
8785
}

src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOMP.js

+1-17
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,7 @@ export const WorkflowConfig = {
217217

218218
return items;
219219
},
220-
getSecondaryItems: ({
221-
submission,
222-
selectedReviewRound,
223-
selectedStageId,
224-
pageInitConfig,
225-
}) => {
220+
getSecondaryItems: ({submission, selectedReviewRound, selectedStageId}) => {
226221
const items = [];
227222
if (!selectedReviewRound) {
228223
return [];
@@ -248,17 +243,6 @@ export const WorkflowConfig = {
248243
},
249244
});
250245

251-
if (pageInitConfig.publicationSettings.isReviewerSuggestionEnabled) {
252-
items.push({
253-
component: 'ReviewerSuggestionManager',
254-
props: {
255-
submission,
256-
submissionStageId: selectedStageId,
257-
reviewRoundId: selectedReviewRound?.id,
258-
},
259-
});
260-
}
261-
262246
return items;
263247
},
264248
getActionItems: ({submission, selectedStageId, selectedReviewRound}) => {

0 commit comments

Comments
 (0)