Skip to content

Commit

Permalink
Remove unused StartPlayOffModal component
Browse files Browse the repository at this point in the history
  • Loading branch information
phrasmotica committed Apr 27, 2024
1 parent e3e4771 commit e5ed30b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 63 deletions.
40 changes: 0 additions & 40 deletions src/components/modals/StartPlayOffModal.vue

This file was deleted.

1 change: 0 additions & 1 deletion src/components/results/ResultsButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const props = defineProps<{
}>()
const emit = defineEmits<{
confirmStartPlayOff: []
confirmSkipPlayOff: []
confirmCreatePlayOff: []
confirmFinishFlyer: []
Expand Down
22 changes: 0 additions & 22 deletions src/views/ResultsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ 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 Podium from "@/components/results/Podium.vue"
Expand Down Expand Up @@ -86,7 +85,6 @@ const {
} = useScreenSizes()
const [showGoToSetupModal, setShowGoToSetupModal] = useToggle()
const [showStartPlayOffModal, setShowStartPlayOffModal] = useToggle()
const [showSkipPlayOffModal, setShowSkipPlayOffModal] = useToggle()
const [showCreatePlayOffModal, setShowCreatePlayOffModal] = useToggle()
const [showFinishFlyerModal, setShowFinishFlyerModal] = useToggle()
Expand Down Expand Up @@ -116,19 +114,6 @@ const alreadySaved = computed(() => {
return flyerHistoryStore.pastFlyers.some(f => f.id === flyer.value?.id)
})
const startPlayOff = () => {
if (!nextUnresolvedTieBreaker.value || !mainPhase.value) {
console.debug("No play-offs remaining!")
return
}
flyerStore.addPlayOff(mainPhase.value, nextUnresolvedTieBreaker.value, 1)
setShowStartPlayOffModal(false)
routing.toPlay()
}
const skipPlayOff = (players: Player[]) => {
if (!nextUnresolvedTieBreaker.value || !mainPhase.value) {
console.debug("No play-offs remaining!")
Expand Down Expand Up @@ -242,7 +227,6 @@ const save = () => {
sidebar
:imageSaved="imageSaved"
@confirmGoToSetup="confirmGoToSetup"
@confirmStartPlayOff="() => setShowStartPlayOffModal(true)"
@confirmSkipPlayOff="() => setShowSkipPlayOffModal(true)"
@confirmCreatePlayOff="() => setShowCreatePlayOffModal(true)"
@confirmFinishFlyer="() => setShowFinishFlyerModal(true)"
Expand All @@ -257,11 +241,6 @@ const save = () => {
@confirm="goToSetup"
@hide="() => setShowGoToSetupModal(false)" />

<StartPlayOffModal
v-model:visible="showStartPlayOffModal"
@confirm="startPlayOff"
@hide="() => setShowStartPlayOffModal(false)" />

<SkipPlayOffModal
v-model:visible="showSkipPlayOffModal"
@confirmRanking="skipPlayOff"
Expand All @@ -282,7 +261,6 @@ const save = () => {
<ResultsButtons
:imageSaved="imageSaved"
@confirmGoToSetup="confirmGoToSetup"
@confirmStartPlayOff="() => setShowStartPlayOffModal(true)"
@confirmSkipPlayOff="() => setShowSkipPlayOffModal(true)"
@confirmCreatePlayOff="() => setShowCreatePlayOffModal(true)"
@confirmFinishFlyer="() => setShowFinishFlyerModal(true)"
Expand Down

0 comments on commit e5ed30b

Please sign in to comment.