fixed broken elements due to api changes
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user