Skip to content

Commit

Permalink
pkp/pkp-lib#4787 Reviewer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Oct 18, 2024
1 parent 5b972e8 commit 777d2c3
Show file tree
Hide file tree
Showing 3 changed files with 402 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Container/SubmissionWizardPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Page from '@/components/Container/Page.vue';
import ButtonRow from '../ButtonRow/ButtonRow.vue';
import ContributorsListPanel from '../ListPanel/contributors/ContributorsListPanel.vue';
import ReviewerSuggestionsListPanel from '../ListPanel/reviewerSuggestions/ReviewerSuggestionsListPanel.vue';
import File from '../File/File.vue';
import Modal from '../Modal/Modal.vue';
import ReconfigureSubmissionModal from '@/pages/submissionWizard/ReconfigureSubmissionModal.vue';
Expand All @@ -19,6 +20,7 @@ export default {
components: {
ButtonRow,
ContributorsListPanel,
ReviewerSuggestionsListPanel,
File,
Modal,
SubmissionFilesListPanel,
Expand Down Expand Up @@ -596,6 +598,13 @@ export default {
this.publication.authors = newContributors;
},
/**
* Update the reviewer suggestions in the submission
*/
setReviewerSuggestion(newReviewerSuggestions) {
this.submission.reviewerSuggestions = newReviewerSuggestions;
},
/**
* Update the publication in the submission
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<SideModalBody>
<template #title>
{{ title }}
</template>
<SideModalLayoutBasic>
<PkpForm
v-bind="activeForm"
@set="(...args) => emit('updateForm', ...args)"
@success="(...args) => emit('formSuccess', ...args)"
/>
</SideModalLayoutBasic>
</SideModalBody>
</template>

<script setup>
import SideModalBody from '@/components/Modal/SideModalBody.vue';
import SideModalLayoutBasic from '@/components/Modal/SideModalLayoutBasic.vue';
import PkpForm from '@/components/Form/Form.vue';
defineProps({
title: {type: String, required: true},
activeForm: {type: Object, required: true},
});
const emit = defineEmits(['updateForm', 'formSuccess']);
</script>
Loading

0 comments on commit 777d2c3

Please sign in to comment.