22 <ActionBox :instruction-title =" t (' rules.action.plant.title' )" :currentCard =" currentCard " :managedByApp =" true " >
33 <template #action >
44 <div class =" action" >
5- <AppIcon type="action" name="plant" class="icon"/>: <FlowerIcon :flower =" flowerToPlant " class="icon"/>
5+ <AppIcon type="action" name="plant" class="icon"/>: <FlowerIcon v-if = " action . flower " :flower =" action . flower " class="icon"/>
66 </div >
77 </template >
88 <template #instruction >
1616import { defineComponent , PropType } from ' vue'
1717import { useI18n } from ' vue-i18n'
1818import NavigationState from ' @/util/NavigationState'
19- import Card , { CardAction } from ' @/services/Card'
19+ import Card from ' @/services/Card'
20+ import { BotAction } from ' @/services/BotActions'
2021import ActionBox from ' ../ActionBox.vue'
2122import AppIcon from ' @/components/structure/AppIcon.vue'
22- import Flower from ' @/services/enum/Flower'
2323import FlowerIcon from ' @/components/structure/FlowerIcon.vue'
2424
2525export default defineComponent ({
@@ -36,7 +36,7 @@ export default defineComponent({
3636 },
3737 props: {
3838 action: {
39- type: Object as PropType <CardAction >,
39+ type: Object as PropType <BotAction >,
4040 required: true
4141 },
4242 navigationState: {
@@ -47,11 +47,6 @@ export default defineComponent({
4747 type: Object as PropType <Card >,
4848 required: false
4949 }
50- },
51- computed: {
52- flowerToPlant() : Flower {
53- return this .navigationState .marketPrices .getMostExpensiveFlower ()
54- }
5550 }
5651})
5752 </script >
0 commit comments