Fix player names in FollowTarget
This commit is contained in:
parent
4393890661
commit
4c91b3225e
@ -3,9 +3,9 @@
|
||||
<h2>Following</h2>
|
||||
|
||||
<div class="following__target">
|
||||
<img width="32" height="32" class="target__icon" src="images/player_face.png" alt="" />
|
||||
<span class="target__name">{{ target.name }}</span>
|
||||
<button class="target__unfollow" type="button" :title="`Unfollow ${target.name}`"
|
||||
<img width="32" height="32" class="target__icon" :src="playerImage" alt="" />
|
||||
<span class="target__name" v-html="target.name"></span>
|
||||
<button class="target__unfollow" type="button" :title="`Stop following this player`"
|
||||
@click.prevent="unfollow"
|
||||
@keydown="onKeydown">Unfollow</button>
|
||||
</div>
|
||||
@ -18,6 +18,8 @@ import {DynmapPlayer} from "@/dynmap";
|
||||
import {useStore} from "@/store";
|
||||
import {MutationTypes} from "@/store/mutation-types";
|
||||
|
||||
const playerImage = require('@/assets/images/player_face.png');
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FollowTarget',
|
||||
props: {
|
||||
@ -26,6 +28,11 @@ export default defineComponent({
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
playerImage,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
unfollow() {
|
||||
useStore().commit(MutationTypes.CLEAR_FOLLOW, undefined);
|
||||
|
Loading…
Reference in New Issue
Block a user