Skip to content

Commit

Permalink
Merge pull request pkp#379 from jonasraoni/bugfix-stable-3_4_0-10170-…
Browse files Browse the repository at this point in the history
…fix-reviewer-list

pkp/pkp-lib#10170 Fixed synchronization of the reviewer container
  • Loading branch information
jonasraoni authored Jul 14, 2024
2 parents 1498346 + 0a41f61 commit 21fa070
Showing 1 changed file with 34 additions and 31 deletions.
65 changes: 34 additions & 31 deletions src/components/Container/AdvancedSearchReviewerContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,44 @@
<div class="list_outline">
<ol class="list_box">
<li
class="author_row"
v-for="(affiliations, author) in displayedItems"
:key="author"
class="author_row"
v-for="(affiliations, author) in displayedItems"
:key="author"
>
<strong>{{ author }}</strong>
<span v-if="affiliations"> - </span>
<span v-if="affiliations">{{ ' - ' }}</span>
<span>{{ affiliations }}</span>
</li>
</ol>
<div class="action_container" v-if="authorCount > 4">
<span
class="show_authors_action"
v-if="!showAllAuthors"
@click="toggleShowAllAuthors"
>
class="show_authors_action"
v-if="!showAllAuthors"
@click="toggleShowAllAuthors"
>
{{ `${labels.showAll} ${authorCount} ${labels.authorsLabel}` }}
</span>
<span
class="show_authors_action"
v-if="showAllAuthors"
@click="toggleShowAllAuthors"
class="show_authors_action"
v-if="showAllAuthors"
@click="toggleShowAllAuthors"
>
{{ labels.showLess }}
</span>
</div>
</div>
</div>
<select-reviewer-list-panel v-bind="components.selectReviewer" />
<select-reviewer-list-panel v-bind="components.selectReviewer" @set="set" />
</div>
</template>

<script>
import Container from '@/components/Container/Container.vue';
import SelectReviewerListPanel from '@/components/ListPanel/users/SelectReviewerListPanel.vue';
export default {
name: 'AdvancedSearchReviewerContainer',
extends: Container,
components: {
SelectReviewerListPanel,
},
Expand Down Expand Up @@ -75,24 +78,24 @@ export default {
<style lang="less">
@import '../../styles/_import';
.pkpAdvancedSearchReviewerContainer {
.action_container {
padding-left: 1rem;
padding-bottom: 0.9rem;
}
.list_outline {
border: 1px solid @grid-border-color;
border-radius: 2px;
margin-bottom: 1.3rem;
}
.list_box {
padding-left: 1.9rem;
overflow-y: scroll;
max-height: 17em;
}
.show_authors_action {
color: @primary;
text-decoration: none;
cursor: pointer;
}
.action_container {
padding-left: 1rem;
padding-bottom: 0.9rem;
}
.list_outline {
border: 1px solid @grid-border-color;
border-radius: 2px;
margin-bottom: 1.3rem;
}
.list_box {
padding-left: 1.9rem;
overflow-y: scroll;
max-height: 17em;
}
.show_authors_action {
color: @primary;
text-decoration: none;
cursor: pointer;
}
}
</style>

0 comments on commit 21fa070

Please sign in to comment.