fixed broken elements due to api changes

This commit is contained in:
cnachtigall1991
2021-10-17 19:52:12 +02:00
parent 123f78cb21
commit 6310295795
10 changed files with 228 additions and 69 deletions

View File

@@ -1,6 +1,6 @@
<template>
<td>
<img :src="props.avatar" alt="Player avatar" class="player__avatar" :class="'team-color-' + props.color">
<img :src="constructAvatarUrl(props.avatar)" alt="Player avatar" class="player__avatar" :class="'team-color-' + props.color">
</td>
<td class="player__name" @click="GoToPlayer(props.steamid64)">
<i class="far fa-dot-circle text-success tracked" v-if="props.tracked" title="Tracked user"></i>
@@ -48,7 +48,7 @@
</template>
<script>
import {DisplayRank, GetHLTV_1, GoToPlayer} from "../utils";
import {DisplayRank, GetHLTV_1, GoToPlayer, constructAvatarUrl} from "../utils";
export default {
name: 'ScoreTeamPlayer',
@@ -155,7 +155,7 @@ export default {
}
},
setup(props) {
return {props, GetHLTV_1, GoToPlayer, DisplayRank}
return {props, GetHLTV_1, GoToPlayer, DisplayRank, constructAvatarUrl}
}
}
</script>