+ else if (this.vr.moves.length > 0)
+ {
+ // A game finished, and another is not started yet: allow navigation
+ actionArray = actionArray.concat([
+ h('button',
+ {
+ on: { click: e => this.undo() },
+ attrs: { "aria-label": 'Undo' },
+ "class": {
+ "small": smallScreen,
+ "marginleft": true,
+ },
+ },
+ [h('i', { 'class': { "material-icons": true } }, "fast_rewind")]),
+ h('button',
+ {
+ on: { click: e => this.play() },
+ attrs: { "aria-label": 'Play' },
+ "class": { "small": smallScreen },
+ },
+ [h('i', { 'class': { "material-icons": true } }, "fast_forward")]),
+ ]
+ );
+ }
+ if (this.mode == "friend")
+ {
+ actionArray = actionArray.concat(
+ [
+ h('button',
+ {
+ on: { click: this.undoInGame },
+ attrs: { "aria-label": 'Undo' },
+ "class": {
+ "small": smallScreen,
+ "marginleft": true,
+ },
+ },
+ [h('i', { 'class': { "material-icons": true } }, "undo")]
+ ),
+ h('button',
+ {
+ on: { click: () => { this.mycolor = this.vr.getOppCol(this.mycolor) } },
+ attrs: { "aria-label": 'Flip' },
+ "class": { "small": smallScreen },
+ },
+ [h('i', { 'class': { "material-icons": true } }, "cached")]
+ ),
+ ]);
+ }