mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: display max 15 friends
This commit is contained in:
parent
4aad54972e
commit
6c06bf3cc9
1 changed files with 7 additions and 1 deletions
|
|
@ -43,7 +43,7 @@
|
||||||
<div class="w-1/4">Winrate</div>
|
<div class="w-1/4">Winrate</div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="mt-1 text-gray-100">
|
<ul class="mt-1 text-gray-100">
|
||||||
<li v-for="mate in mates" :key="mate.name" class="flex justify-between items-center">
|
<li v-for="mate in mates.slice(0, maxMates)" :key="mate.name" class="flex justify-between items-center">
|
||||||
<router-link
|
<router-link
|
||||||
:to="{ name: 'summoner', params: { region: $route.params.region, name: mate.name }}"
|
:to="{ name: 'summoner', params: { region: $route.params.region, name: mate.name }}"
|
||||||
class="w-2/4 hover:text-teal-200"
|
class="w-2/4 hover:text-teal-200"
|
||||||
|
|
@ -93,6 +93,12 @@ export default {
|
||||||
Dropdown,
|
Dropdown,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
maxMates: 15
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
hasMates() {
|
hasMates() {
|
||||||
return this.mates.length > 0
|
return this.mates.length > 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue