Use config players heading
This commit is contained in:
parent
ca82f56185
commit
e4961c7893
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="sidebar__section">
|
<section class="sidebar__section">
|
||||||
<span class="section__heading">Players [{{ players.size }}/{{ maxPlayers }}]</span>
|
<span class="section__heading">{{ heading }} [{{ players.size }}/{{ maxPlayers }}]</span>
|
||||||
<ul class="section__content">
|
<ul class="section__content">
|
||||||
<PlayerListItem v-for="[account, player] in players" :key="account" :player="player"></PlayerListItem>
|
<PlayerListItem v-for="[account, player] in players" :key="account" :player="player"></PlayerListItem>
|
||||||
</ul>
|
</ul>
|
||||||
@ -18,6 +18,10 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
heading() {
|
||||||
|
return useStore().state.messages.players;
|
||||||
|
},
|
||||||
|
|
||||||
players() {
|
players() {
|
||||||
return useStore().state.players;
|
return useStore().state.players;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user