added vac icon to chat + changed chat url

This commit is contained in:
2022-02-03 16:15:58 +01:00
parent 38d4b7d961
commit 4f27e8dd16
3 changed files with 63 additions and 28 deletions

View File

@@ -132,8 +132,8 @@
<li :title="!data.matchDetails.parsed ? 'This demo has not been parsed' : data.matchDetails.date < 1643410799 ? 'This feature wasn\'t available for this match' : ''"
class="list-item nav-item">
<router-link :class="!data.matchDetails.parsed ? 'disabled' : data.matchDetails.date < 1643410799 ? 'disabled' : ''" :disabled="!data.matchDetails.parsed"
:to="'/match/' + data.matchDetails.match_id + '/chat-history'" class="nav-link"
replace>Chat-History
:to="'/match/' + data.matchDetails.match_id + '/chat'" class="nav-link"
replace>Chat
</router-link>
</li>
</ul>
@@ -257,7 +257,7 @@ export default {
if (route.fullPath.split('/')[3]) {
const sub = route.fullPath.split('/')[3]
if (matchIdPattern.test(props.match_id)) {
if (store.state.matchDetails.date <= 1643410799 && sub === 'chat-history') {
if (store.state.matchDetails.date <= 1643410799 && sub === 'chat') {
GoToLink(`/match/${props.match_id}`)
} else
GoToLink(`/match/${props.match_id}/${sub}`)