updated window title
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<div class="m-auto map">
|
||||
<img v-if="data.matchDetails.map" :alt="data.matchDetails.map"
|
||||
:src="require('../assets/images/map_icons/map_icon_' + data.matchDetails.map + '.svg')"
|
||||
:title="data.matchDetails.map" class="map-icon"
|
||||
:title="FixMapName(data.matchDetails.map)" class="map-icon"
|
||||
>
|
||||
<img v-if="!data.matchDetails.map" :src="require('../assets/images/map_icons/map_icon_lobby_mapveto.svg')"
|
||||
alt="Map icon"
|
||||
@@ -138,6 +138,7 @@ import {
|
||||
} from "../utils";
|
||||
import {useStore} from "vuex";
|
||||
import {useRoute} from 'vue-router'
|
||||
import {DateTime} from "luxon/build/es6/luxon";
|
||||
import {FOOTER_HEIGHT, NAV_HEIGHT} from "@/constants";
|
||||
|
||||
export default {
|
||||
@@ -163,7 +164,7 @@ export default {
|
||||
const res = await GetMatchDetails(props.match_id)
|
||||
|
||||
if (res.map)
|
||||
document.title = `${FixMapName(res.map)} | csgoWTF`
|
||||
document.title = `${FixMapName(res.map)} ► ${res.score[0]} : ${res.score[1]} ◄ ${DateTime.fromSeconds(res.date).toLocaleString(DateTime.DATETIME_SHORT)} | csgoWTF`
|
||||
else
|
||||
document.title = `Match-Details | csgoWTF`
|
||||
|
||||
@@ -290,7 +291,7 @@ export default {
|
||||
})
|
||||
|
||||
return {
|
||||
data, DisplayRank, FormatFullDate, FormatDuration, route, checkWin, handleDownloadMenu
|
||||
data, DisplayRank, FormatFullDate, FormatDuration, FixMapName, route, checkWin, handleDownloadMenu
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user