Skip to content

Commit

Permalink
Prosperity Phase: Show drafted cards
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 7, 2025
1 parent b9c9628 commit f2bd4fc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/views/PhaseBProsperity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

<p class="mt-4" v-html="t('phaseBProsperity.skip')"></p>

<div v-if="playerTechs.length > 0" class="mt-3">
<TechCardsPlayerDraft :navigationState="navigationState" :playerTechs="playerTechs"/>
</div>

<button class="btn btn-primary btn-lg mt-4" @click="next()">
{{t('action.next')}}
</button>
Expand All @@ -19,16 +23,19 @@ import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import FooterButtons from '@/components/structure/FooterButtons.vue'
import { useRoute } from 'vue-router'
import { useStateStore } from '@/store/state'
import { Round, useStateStore } from '@/store/state'
import SideBar from '@/components/round/SideBar.vue'
import NavigationState from '@/util/NavigationState'
import DebugInfo from '@/components/round/DebugInfo.vue'
import TechCardsPlayerDraft from '@/components/round/TechCardsPlayerDraft.vue'
import Tech from '@/services/enum/Tech'
export default defineComponent({
name: 'PhaseBProsperity',
components: {
FooterButtons,
SideBar,
TechCardsPlayerDraft,
DebugInfo
},
setup() {
Expand All @@ -44,6 +51,12 @@ export default defineComponent({
computed: {
backButtonRouteTo() : string {
return `/round/${this.round}/drafting`
},
roundData() : Round|undefined {
return this.state.rounds.find(item => item.round == this.navigationState.round)
},
playerTechs() : Tech[] {
return this.roundData?.playerTechs ?? []
}
},
methods: {
Expand Down

0 comments on commit f2bd4fc

Please sign in to comment.