updated window title
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2021-11-22 19:09:43 +01:00
parent 2b45dc8799
commit d22d720a01

View File

@@ -14,7 +14,7 @@
<div class="m-auto map"> <div class="m-auto map">
<img v-if="data.matchDetails.map" :alt="data.matchDetails.map" <img v-if="data.matchDetails.map" :alt="data.matchDetails.map"
:src="require('../assets/images/map_icons/map_icon_' + data.matchDetails.map + '.svg')" :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')" <img v-if="!data.matchDetails.map" :src="require('../assets/images/map_icons/map_icon_lobby_mapveto.svg')"
alt="Map icon" alt="Map icon"
@@ -138,6 +138,7 @@ import {
} from "../utils"; } from "../utils";
import {useStore} from "vuex"; import {useStore} from "vuex";
import {useRoute} from 'vue-router' import {useRoute} from 'vue-router'
import {DateTime} from "luxon/build/es6/luxon";
import {FOOTER_HEIGHT, NAV_HEIGHT} from "@/constants"; import {FOOTER_HEIGHT, NAV_HEIGHT} from "@/constants";
export default { export default {
@@ -163,7 +164,7 @@ export default {
const res = await GetMatchDetails(props.match_id) const res = await GetMatchDetails(props.match_id)
if (res.map) 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 else
document.title = `Match-Details | csgoWTF` document.title = `Match-Details | csgoWTF`
@@ -290,7 +291,7 @@ export default {
}) })
return { return {
data, DisplayRank, FormatFullDate, FormatDuration, route, checkWin, handleDownloadMenu data, DisplayRank, FormatFullDate, FormatDuration, FixMapName, route, checkWin, handleDownloadMenu
} }
} }
} }