Skip to content

Commit

Permalink
Show standings tab if we're in a play-off phase
Browse files Browse the repository at this point in the history
  • Loading branch information
phrasmotica committed Apr 27, 2024
1 parent 2c027f5 commit e3e4771
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/views/PlayView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ const sections = computed(() => {
PlayViewSection.EventLog,
]
if (isKnockout.value) {
// BUG: should always show standings if the main phase was round-robin or winner stays on
if (isKnockout.value && currentPhase.value?.id === mainPhase.value?.id) {
// we don't really care about the phase IDs both being undefined
// on the line above.
relevantSections.splice(1, 1)
}
Expand Down
11 changes: 6 additions & 5 deletions src/views/ResultsView.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<script setup lang="ts">
import { useTitle, useToggle } from "@vueuse/core"
import { computed } from "vue"
import { useI18n } from "vue-i18n"
import { useRouter } from "vue-router"
import { useTitle, useToggle } from "@vueuse/core"
import PageTemplate from "@/components/PageTemplate.vue"
import CreatePlayOffModal from "@/components/modals/CreatePlayOffModal.vue"
import FinishFlyerModal from "@/components/modals/FinishFlyerModal.vue"
import NewFlyerModal from "@/components/modals/NewFlyerModal.vue"
import SkipPlayOffModal from "@/components/modals/SkipPlayOffModal.vue"
import StartPlayOffModal from "@/components/modals/StartPlayOffModal.vue"
import FlyerClock from "@/components/play/FlyerClock.vue"
import LightsCalculator from "@/components/results/LightsCalculator.vue"
import NewFlyerModal from "@/components/modals/NewFlyerModal.vue"
import PageTemplate from "@/components/PageTemplate.vue"
import Podium from "@/components/results/Podium.vue"
import ResultsButtons from "@/components/results/ResultsButtons.vue"
import ResultsMessages from "@/components/results/ResultsMessages.vue"
import ResultsTable from "@/components/results/ResultsTable.vue"
import SkipPlayOffModal from "@/components/modals/SkipPlayOffModal.vue"
import StartPlayOffModal from "@/components/modals/StartPlayOffModal.vue"
import WinningsList from "@/components/results/WinningsList.vue"
import WinningsSummary from "@/components/results/WinningsSummary.vue"
Expand Down Expand Up @@ -216,6 +216,7 @@ const save = () => {
<ResultsMessages />

<div v-if="isFinished" class="mt-1">
<!-- BUG: this doesn't show up if there's no entry fee -->
<WinningsSummary />
</div>
</div>
Expand Down

0 comments on commit e3e4771

Please sign in to comment.