forked from CSGOWTF/csgowtf
added vac icon to chat + changed chat url
This commit is contained in:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user