Skip to content

Commit

Permalink
pkp/pkp-lib#4787 leftover ui changes and simple orcid id field add
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Nov 1, 2024
1 parent 99c9554 commit 1de524e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default {
const newReviewerSuggestions = [...this.submission.reviewerSuggestions];
newReviewerSuggestions.push(reviewerSuggestion);
console.log(newReviewerSuggestions);
this.$emit('updated:reviewerSuggestions', newReviewerSuggestions);
} else {
const newReviewerSuggestions = this.submission.reviewerSuggestions.map(
Expand Down
17 changes: 15 additions & 2 deletions src/components/ListPanel/users/SelectReviewerListPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<slot>
<ListPanel
v-if="suggestions.length > 0"
class="listPanel--selectReviewer"
class="listPanel--selectReviewer reviewer-sugestions-list"
:items="suggestions"
>
<template #header>
<PkpHeader>
<h2>
{{ title }}
{{ suggestionTitle ?? title }}
</h2>
<Spinner v-if="isLoading" />
</PkpHeader>
Expand Down Expand Up @@ -349,6 +349,11 @@ export default {
type: String,
required: true,
},
/** The list panel title of reviewer suggestion list */
suggestionTitle: {
type: String,
required: false,
},
/** An array of reviewer suggestion if there are any */
suggestions: {
type: Array,
Expand Down Expand Up @@ -454,3 +459,11 @@ export default {
},
};
</script>

<style lang="less">
@import '../../../styles/_import';
.reviewer-sugestions-list {
margin-bottom: 4rem;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
<div class="listPanel__itemTitle">
<!-- TODO: check why localize(fullName) causing error -->
{{ fullName }}
<Badge class="listPanel__item--reviewer__active">
{{ affiliation }}
</Badge>
</div>

<div class="listPanel__itemSubtitle">
<div class="listPanel__item--reviewer__affiliation">
<!-- TODO: how to show without v-html -->
{{ suggestionReason }}
{{ affiliation }}
</div>
<!-- TODO: check alternative of v-html as v-strip-unsafe-html not working -->
<div v-strip-unsafe-html="suggestionReason"></div>
</div>
</div>

Expand All @@ -31,7 +29,6 @@
</template>

<script>
import Badge from '@/components/Badge/Badge.vue';
import PkpButton from '@/components/Button/Button.vue';
import ajaxError from '@/mixins/ajaxError';
import dialog from '@/mixins/dialog.js';
Expand All @@ -40,7 +37,6 @@ import {useLocalize} from '@/composables/useLocalize';
export default {
components: {
Badge,
PkpButton,
},
mixins: [ajaxError, dialog],
Expand Down Expand Up @@ -107,9 +103,6 @@ export default {
select() {
const {t} = useLocalize();
// this.$emit('select', this.item);
// pkp.eventBus.$emit('selected:reviewerSuggestion', this.item);
const {openLegacyModal} = useLegacyGridUrl({
component: 'grid.users.reviewer.ReviewerGridHandler',
op: 'showReviewerForm',
Expand All @@ -130,32 +123,3 @@ export default {
},
};
</script>

<style lang="less">
@import '../../../styles/_import';
.listPanel__item--reviewer__active {
margin-inline-end: 0.25rem;
font-weight: @normal;
}
// Reviewer locked or already assigned
.listPanel__item--reviewer__notice {
font-size: @font-tiny;
}
// Make the button look like a link
.listPanel__item--reviewer__noticeAction {
border: none;
padding: 0;
background: transparent;
color: @primary;
text-decoration: underline;
cursor: pointer;
&:hover,
&:focus {
color: @primary-lift;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@
{{ reviewerSuggestion.fullName }}
</div>
<div class="text-sm-normal text-secondary">
{{ reviewerSuggestion.suggestionReason }}
{{ reviewerSuggestion.affiliation }}
</div>
<!-- TODO: check alternative of v-html as v-strip-unsafe-html not working -->
<div
v-strip-unsafe-html="reviewerSuggestion.suggestionReason"
class="text-sm-normal text-secondary"
></div>
</div>
</div>
<div>
Expand Down

0 comments on commit 1de524e

Please sign in to comment.