fix errors
This commit is contained in:
parent
3062bce6ca
commit
8351bff0d8
@ -5,7 +5,7 @@
|
||||
<Card v-for="c in cards" v-bind:key="c" :card="c" @click.native="select(c)" @pointerenter.native="showDesc(c)" @pointerleave.native="desc=''"/>
|
||||
</div>
|
||||
<p v-if="hintText">{{hintText}}</p>
|
||||
<div style="margin-top:6pt;" class="button center-stuff" v-if="showCancelBtn" @click="cancel"><span>{{cancelText}}</span></div>
|
||||
<div style="margin-top:6pt;" class="button center-stuff" v-if="showCancelBtn" @click="cancel"><span>{{realCancelText}}</span></div>
|
||||
<p v-if="desc" style="bottom:10pt;right:0;left:0;position:absolute;margin:16pt;font-size:18pt">{{desc}}</p>
|
||||
</div>
|
||||
</template>
|
||||
@ -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')
|
||||
}
|
||||
},
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user