diff --git a/frontend/src/components/Chooser.vue b/frontend/src/components/Chooser.vue index abcb66c..c8de680 100644 --- a/frontend/src/components/Chooser.vue +++ b/frontend/src/components/Chooser.vue @@ -5,7 +5,7 @@

{{hintText}}

-
{{cancelText}}
+
{{realCancelText}}

{{desc}}

@@ -30,7 +30,8 @@ export default { hintText: String, }, data: () => ({ - desc: '' + desc: '', + realCancelText: '' }), computed: { showCancelBtn() { @@ -45,8 +46,9 @@ export default { } }, mounted() { - if (this.cancelText == '') { - this.cancelText = this.$t('cancel') + this.realCancelText = this.cancelText + if (this.realCancelText == '') { + this.realCancelText = this.$t('cancel') } }, } diff --git a/frontend/src/components/Deck.vue b/frontend/src/components/Deck.vue index 911d950..eeeb2ec 100644 --- a/frontend/src/components/Deck.vue +++ b/frontend/src/components/Deck.vue @@ -30,10 +30,7 @@ export default { name: 'PewPew!', icon: '💥', }, - endTurnCard: { - name: this.$t('end_turn'), - icon: '⛔️' - }, + endTurnCard: null, lastScrap: null, previousScrap: null, pending_action: false, @@ -49,6 +46,12 @@ export default { this.lastScrap = card } }, + mounted() { + this.endTurnCard = { + name: this.$t('end_turn'), + icon: '⛔️' + } + }, methods: { action(pile) { if (this.pending_action !== false && this.pending_action < 2) {