Skip to content

Commit

Permalink
Hide head to head link if it's not going to show anything important
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Oct 7, 2021
1 parent 7ba829c commit 27e1ba8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website/src/views/Match.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<router-view :match="match" />
</div>
<div class="col-12 col-md-3">
<ul class="match-sub-nav list-group mb-2">
<ul class="match-sub-nav list-group mb-2" v-if="showHeadToHead"> <!-- only because it'd be the only one -->
<router-link class="list-group-item" exact active-class="active" :to="subLink('')">VOD</router-link>
<router-link class="list-group-item" active-class="active" :to="subLink('history')">Head to head</router-link>
<router-link v-if="showHeadToHead" class="list-group-item" active-class="active" :to="subLink('history')">Head to head</router-link>
</ul>

<table class="match-details table-sm">
Expand Down Expand Up @@ -153,6 +153,9 @@ export default {
},
theme() {
return this.match?.event?.theme;
},
showHeadToHead() {
return this.match?.event?.map_pool;
}
},
metaInfo() {
Expand Down

0 comments on commit 27e1ba8

Please sign in to comment.