diff --git a/components/Shogiboard.vue b/components/Shogiboard.vue
index 130649f..333e7a1 100644
--- a/components/Shogiboard.vue
+++ b/components/Shogiboard.vue
@@ -36,19 +36,24 @@
v-bind:is-before-hand="isBeforeHand"
>
@@ -267,6 +272,12 @@ export default Vue.extend({
this.$emit('updateText', this.buildSfen())
this.$emit('send')
},
+ togglePromotedAndTurnOnButton() {
+ if (this.beforeX === undefined) {
+ return
+ }
+ this.togglePromotedAndTurn(this.beforeX, this.beforeY)
+ },
moveCell(x, y) {
if (this.beforeX === undefined && this.rows[y][x] !== ".") {
this.beforeX = x