Skip to content

Commit

Permalink
Minor fixes for schedule and map info
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Oct 19, 2022
1 parent 7f863af commit 400c5f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion website/src/components/website/match/MatchMapHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<tr class="match-map-history" v-bind:class="{ 'scheduled': isScheduled }">
<td class="map-name" style="width: 200px">
{{ map.name }}
<i class="fa fa-fw fa-check" v-if="isScheduled"></i>
<i class="fa fa-fw fa-check" v-b-tooltip.top="'Scheduled for this match'" v-if="isScheduled"></i>
</td>
<TeamMapStats class="map-team-stats" v-for="(data, ti) in data.stats"
v-bind:key="ti" :data="data"/>
Expand All @@ -11,9 +11,13 @@

<script>
import TeamMapStats from "@/components/website/match/TeamMapStats";
import { VBTooltip } from "bootstrap-vue";
export default {
name: "MatchMapHistory",
directives: {
VBTooltip
},
components: { TeamMapStats },
props: ["data", "map"],
computed: {
Expand Down
6 changes: 5 additions & 1 deletion website/src/components/website/match/TeamMapStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- <div class="stat team">{{ team.code }}</div>-->
<ThemeLogo logo-size="w-50" class="team-icon" :theme="team.theme" border-width="4" icon-padding="4" />
<div class="stat scoreline">{{ scoreline }}</div>
<div class="stat recent"><i v-if="stats.played_recently" class="far fa-clock fa-fw" title="Played in their last match"></i></div>
<div class="stat recent"><i v-if="stats.played_recently" class="far fa-clock fa-fw" v-b-tooltip.top="'Played in their last match'"></i></div>
<!-- <div class="stat played">{{ stats.played }}</div>-->

</div>
Expand All @@ -13,10 +13,14 @@

<script>
import ThemeLogo from "@/components/website/ThemeLogo";
import { VBTooltip } from "bootstrap-vue";
export default {
name: "TeamMapStats",
components: { ThemeLogo },
props: ["data"],
directives: {
VBTooltip
},
computed: {
stats() {
return this.data.stats;
Expand Down
2 changes: 1 addition & 1 deletion website/src/views/sub-views/EventSchedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default {
computed: {
defaultScheduleNum() {
const filtered = this.pagedMatches.filter(page => {
const allMatchesComplete = page.matches.every(m => [m.score_1, m.score_2].includes(m.first_to));
const allMatchesComplete = page.matches.every(m => m.special_event || [m.score_1, m.score_2].includes(m.first_to));
if (allMatchesComplete) return false; // don't show a page if all of the matches are complete by default
const anyMatchHasTeams = page.matches.some(m => m.teams);
Expand Down

0 comments on commit 400c5f8

Please sign in to comment.