refactor to utils + bug-fixes

This commit is contained in:
cnachtigall1991
2021-10-07 19:04:34 +02:00
parent 0619989748
commit 9794235339
12 changed files with 189 additions and 134 deletions

View File

@@ -13,8 +13,9 @@
</svg>
</td>
<td>
<img :src="props.rank ? require('@/images/rank_icons/skillgroup' + props.rank + '.svg') : require('@/images/rank_icons/skillgroup0.svg')"
alt="Player rank"
<img :src="DisplayRank(props.rank)[0]"
:alt="DisplayRank(props.rank)[1]"
:title="DisplayRank(props.rank)[1]"
class="player__rank">
</td>
<td class="player__kills">
@@ -52,7 +53,7 @@
</template>
<script>
import {GetHLTV_1, GoToPlayer} from "../utils";
import {GetHLTV_1, GoToPlayer, DisplayRank} from "../utils";
export default {
name: 'ScoreTeamPlayer',
@@ -144,7 +145,7 @@ export default {
}
},
setup(props) {
return {props, GetHLTV_1, GoToPlayer}
return {props, GetHLTV_1, GoToPlayer, DisplayRank}
}
}
</script>