diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-13 02:06:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-13 02:06:18 +0900 |
| commit | 3a0527805a40ca9594a99aae3ed418dc502d96b3 (patch) | |
| tree | 07cf8dbacaa8a918e6634784cc257c000905efa1 /src/web | |
| parent | oops (diff) | |
| download | sharkey-3a0527805a40ca9594a99aae3ed418dc502d96b3.tar.gz sharkey-3a0527805a40ca9594a99aae3ed418dc502d96b3.tar.bz2 sharkey-3a0527805a40ca9594a99aae3ed418dc502d96b3.zip | |
oops
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/common/views/components/othello.game.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web/app/common/views/components/othello.game.vue b/src/web/app/common/views/components/othello.game.vue index 4dbcff2474..907e317ce9 100644 --- a/src/web/app/common/views/components/othello.game.vue +++ b/src/web/app/common/views/components/othello.game.vue @@ -15,11 +15,11 @@ <div class="board" :style="{ 'grid-template-rows': `repeat(${ game.settings.map.length }, 1fr)`, 'grid-template-columns': `repeat(${ game.settings.map[0].length }, 1fr)` }"> <div v-for="(stone, i) in o.board" - :class="{ empty: stone == null, none: o.map[i] == 'null', isEnded: game.is_ended, myTurn: !game.is_ended && isMyTurn, can: turnUser ? o.canPut(turnUser.id == blackUser.id ? 'black' : 'white', i) : null, prev: o.prevPos == i }" + :class="{ empty: stone == null, none: o.map[i] == 'null', isEnded: game.is_ended, myTurn: !game.is_ended && isMyTurn, can: turnUser ? o.canPut(turnUser.id == blackUser.id, i) : null, prev: o.prevPos == i }" @click="set(i)" > - <img v-if="stone == 'black'" :src="`${blackUser.avatar_url}?thumbnail&size=128`" alt=""> - <img v-if="stone == 'white'" :src="`${whiteUser.avatar_url}?thumbnail&size=128`" alt=""> + <img v-if="stone === true" :src="`${blackUser.avatar_url}?thumbnail&size=128`" alt=""> + <img v-if="stone === false" :src="`${whiteUser.avatar_url}?thumbnail&size=128`" alt=""> </div> </div> |