refactor to utils + bug-fixes
This commit is contained in:
@@ -104,17 +104,18 @@
|
||||
:key="match.match_id"
|
||||
:class="GetWinLoss(match.match_result, match.stats[0].team_id)"
|
||||
class="match"
|
||||
@click="GoToMatch(match.match_id)">
|
||||
@click="match.map !== '' ? GoToMatch(match.match_id) : ''">
|
||||
<td class="td-map text-center">
|
||||
<img :alt="match.map ? match.map : 'Map not found'"
|
||||
:src="require('@/images/map_icons/map_icon_' + match.map + '.svg')"
|
||||
:src="match.map !== '' ? require('@/images/map_icons/map_icon_' + match.map + '.svg') : require('../images/icons/image.svg')"
|
||||
:title="match.map"
|
||||
class="map-icon">
|
||||
</td>
|
||||
<td class="td-rank text-center">
|
||||
<img
|
||||
:src="match.stats[0].extended?.rank?.new ? require('@/images/rank_icons/skillgroup' + match.stats[0].extended?.rank?.new + '.svg') : require('@/images/rank_icons/skillgroup0.svg')"
|
||||
alt="Rank icon"
|
||||
:src="DisplayRank(match.stats[0].extended?.rank?.new)[0]"
|
||||
:alt="DisplayRank(match.stats[0].extended?.rank?.new)[1]"
|
||||
:title="DisplayRank(match.stats[0].extended?.rank?.new)[1]"
|
||||
class="rank-icon">
|
||||
</td>
|
||||
<td :class="match.stats[0].team_id === match.match_result ? 'text-success' : !match.match_result ? 'text-warning' : 'text-danger'"
|
||||
@@ -191,7 +192,8 @@ import {
|
||||
FormatFullDuration,
|
||||
GetHLTV_1,
|
||||
GoToMatch,
|
||||
SaveLastVisitedToLocalStorage
|
||||
SaveLastVisitedToLocalStorage,
|
||||
DisplayRank
|
||||
} from "../utils";
|
||||
|
||||
export default {
|
||||
@@ -292,7 +294,8 @@ export default {
|
||||
FormatDuration,
|
||||
FormatFullDuration,
|
||||
GoToMatch,
|
||||
GetHLTV_1
|
||||
GetHLTV_1,
|
||||
DisplayRank
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user