Skip to content

Commit

Permalink
pkp/pkp-lib#9456 Allowing user private editorial notes
Browse files Browse the repository at this point in the history
  • Loading branch information
nibou230 committed Nov 23, 2023
1 parent ecebfa9 commit 023b1c3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/components/ListPanel/users/SelectReviewerListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@
</div>
<div v-html="item.gossip"></div>
</list-item>
<list-item v-if="item.privateNotes">
<div class="listPanel__item--reviewer__detailHeading">
{{ privateNotesLabel }}
</div>
<div v-html="item.privateNotes"></div>
</list-item>
<list-item v-if="localize(item.biography)">
<div class="listPanel__item--reviewer__detailHeading">
{{ biographyLabel }}
Expand Down Expand Up @@ -282,6 +288,10 @@ export default {
type: String,
required: true,
},
privateNotesLabel: {
type: String,
required: true,
},
item: {
type: Object,
required: true,
Expand Down
5 changes: 5 additions & 0 deletions src/components/ListPanel/users/SelectReviewerListPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"
:declinedReviewsLabel="declinedReviewsLabel"
:gossipLabel="gossipLabel"
:privateNotesLabel="privateNotesLabel"
:key="item.id"
:item="item"
:neverAssignedLabel="neverAssignedLabel"
Expand Down Expand Up @@ -202,6 +203,10 @@ export default {
type: String,
required: true,
},
privateNotesLabel: {
type: String,
required: true,
},
id: {
type: String,
required: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
declinedReviewsLabel="Reviews declined"
emptyLabel="No reviewers found"
:filters="filters"
gossipLabel="Editorial Notes"
gossipLabel="Editorial Public Notes"
privateNotesLabel="Editorial Private Notes"
id="previewSelectReviewerListPanel"
:items="items"
:itemsMax="items.length"
Expand Down Expand Up @@ -72,6 +73,8 @@ export default {
},
gossip:
"<p>Aisla is a terrific reviewer but she takes a while to confirm and complete a review. Recommend not using her if you're on a tight deadline.</p>",
privateNotes:
"<p>Keep this note private. Aisla is a terrific reviewer but she takes a while to confirm and complete a review. Recommend not using her if you're on a tight deadline.</p>",
},
{
...reviewer,
Expand Down
1 change: 1 addition & 0 deletions src/docs/components/ListPanel/readme-select-reviewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
| `emptyLabel` | A localized string to display when there are no reviewers to show in the list. |
| `filters` | An array [Filter](#/component/Filter)s. Default: `[]` |
| `gossipLabel` | A localized string for the gossip section. |
| `privateNotesLabel` | A localized string for the private notes section. |
| `id` | A unique id for this component. |
| `items` | An array of reviewers. Default: `[]` |
| `itemsMax` | A count of all reviewers in the journal, press or preprint server. Default: `0` |
Expand Down

0 comments on commit 023b1c3

Please sign in to comment.