From: Benjamin Auder Date: Sun, 9 Dec 2018 16:54:10 +0000 (+0100) Subject: Always show game seek button (main purpose of website) X-Git-Url: https://git.auder.net/variants/%24%7Bvname%7D/%7B%7B%20asset%28%27mixstore/images/iris_pca.png%27%29%20%7D%7D?a=commitdiff_plain;h=1dcf83e8cbf9dcaf25e47d269ba5e22c074d8efc;p=vchess.git Always show game seek button (main purpose of website) --- 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(