X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=9d9ea378c7652fe126ff263d8dcce37a98274d1c;hb=1dcf83e8cbf9dcaf25e47d269ba5e22c074d8efc;hp=11ec4c91a5ce529b0fccb27c0bc9e0908acd0840;hpb=2748531f7dbe3202b29c911eede36a0069a33528;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 11ec4c91..9d9ea378 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -30,23 +30,20 @@ Vue.component('my-game', { this.incheck.forEach(sq => { incheckSq[sq[0]][sq[1]] = true; }); let elementArray = []; let actionArray = []; - if (["idle","human"].includes(this.mode)) - { - actionArray.push( - h('button', - { - on: { click: this.clickGameSeek }, - attrs: { "aria-label": 'New online game' }, - 'class': { - "tooltip": true, - "bottom": true, //display below - "seek": this.seek, - "playing": this.mode == "human", - }, + actionArray.push( + h('button', + { + on: { click: this.clickGameSeek }, + attrs: { "aria-label": 'New online game' }, + 'class': { + "tooltip": true, + "bottom": true, //display below + "seek": this.seek, + "playing": this.mode == "human", }, - [h('i', { 'class': { "material-icons": true } }, "accessibility")]) - ); - } + }, + [h('i', { 'class': { "material-icons": true } }, "accessibility")]) + ); if (["idle","computer"].includes(this.mode)) { actionArray.push(