Skip to content

Commit a728ace

Browse files
committed
pkp/pkp-lib#4787 compatibility for OMP added
1 parent f4a4bb4 commit a728ace

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

src/pages/workflow/WorkflowPageOMP.vue

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import ReviewerManager from '@/managers/ReviewerManager/ReviewerManager.vue';
1515
import DiscussionManager from '@/managers/DiscussionManager/DiscussionManager.vue';
1616
import ContributorManager from '@/managers/ContributorManager/ContributorManager.vue';
1717
import ParticipantManager from '@/managers/ParticipantManager/ParticipantManager.vue';
18+
import ReviewerSuggestionManager from '@/managers/ReviewerSuggestionManager/ReviewerSuggestionManager.vue';
1819
import GalleyManager from '@/managers/GalleyManager/GalleyManager.vue';
1920
import ChapterManager from '@/managers/ChapterManager/ChapterManager.vue';
2021
import PublicationFormatManager from '@/managers/PublicationFormatManager/PublicationFormatManager.vue';
@@ -44,6 +45,7 @@ const Components = markRaw({
4445
DiscussionManager,
4546
ContributorManager,
4647
ParticipantManager,
48+
ReviewerSuggestionManager,
4749
GalleyManager,
4850
ChapterManager,
4951
RepresentativeManager,

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

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export function useWorkflowConfigOMP({dashboardPage}) {
3232
if (selectedMenuState.stageId) {
3333
const itemsArgs = {
3434
submission,
35+
pageInitConfig,
3536
selectedPublication,
3637
selectedPublicationId,
3738
selectedStageId: selectedMenuState.stageId,

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

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

218218
return items;
219219
},
220-
getSecondaryItems: ({submission, selectedReviewRound, selectedStageId}) => {
220+
getSecondaryItems: ({
221+
submission,
222+
selectedReviewRound,
223+
selectedStageId,
224+
pageInitConfig,
225+
}) => {
221226
const items = [];
222227
if (!selectedReviewRound) {
223228
return [];
@@ -243,6 +248,17 @@ export const WorkflowConfig = {
243248
},
244249
});
245250

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+
246262
return items;
247263
},
248264
getActionItems: ({submission, selectedStageId, selectedReviewRound}) => {

0 commit comments

Comments
 (0)