summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-06-07 20:34:05 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-06-07 20:34:05 +0900
commit81fadfa4ffdac357de4a13b4f63434a4c0817244 (patch)
treee7b1dc36a896283de764df899f910697f49840a4 /src/client
parentUpdate dependencies :rocket: (diff)
downloadsharkey-81fadfa4ffdac357de4a13b4f63434a4c0817244.tar.gz
sharkey-81fadfa4ffdac357de4a13b4f63434a4c0817244.tar.bz2
sharkey-81fadfa4ffdac357de4a13b4f63434a4c0817244.zip
Fix bug
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/games/reversi/reversi.game.vue10
-rw-r--r--src/client/app/common/views/components/settings/settings.vue8
-rw-r--r--src/client/app/store.ts8
3 files changed, 11 insertions, 15 deletions
diff --git a/src/client/app/common/views/components/games/reversi/reversi.game.vue b/src/client/app/common/views/components/games/reversi/reversi.game.vue
index 315fb464b2..3f481e8eb5 100644
--- a/src/client/app/common/views/components/games/reversi/reversi.game.vue
+++ b/src/client/app/common/views/components/games/reversi/reversi.game.vue
@@ -23,11 +23,11 @@
</div>
<div class="board">
- <div class="labels-x" v-if="this.$store.state.settings.games.reversi.showBoardLabels">
+ <div class="labels-x" v-if="$store.state.settings.gamesReversiShowBoardLabels">
<span v-for="i in game.map[0].length">{{ String.fromCharCode(64 + i) }}</span>
</div>
<div class="flex">
- <div class="labels-y" v-if="this.$store.state.settings.games.reversi.showBoardLabels">
+ <div class="labels-y" v-if="$store.state.settings.gamesReversiShowBoardLabels">
<div v-for="i in game.map.length">{{ i }}</div>
</div>
<div class="cells" :style="cellsStyle">
@@ -35,7 +35,7 @@
:class="{ empty: stone == null, none: o.map[i] == 'null', isEnded: game.isEnded, myTurn: !game.isEnded && isMyTurn, can: turnUser ? o.canPut(turnUser.id == blackUser.id, i) : null, prev: o.prevPos == i }"
@click="set(i)"
:title="`${String.fromCharCode(65 + o.transformPosToXy(i)[0])}${o.transformPosToXy(i)[1] + 1}`">
- <template v-if="$store.state.settings.games.reversi.useAvatarStones">
+ <template v-if="$store.state.settings.gamesReversiUseAvatarStones">
<img v-if="stone === true" :src="blackUser.avatarUrl" alt="black">
<img v-if="stone === false" :src="whiteUser.avatarUrl" alt="white">
</template>
@@ -45,11 +45,11 @@
</template>
</div>
</div>
- <div class="labels-y" v-if="this.$store.state.settings.games.reversi.showBoardLabels">
+ <div class="labels-y" v-if="this.$store.state.settings.gamesReversiShowBoardLabels">
<div v-for="i in game.map.length">{{ i }}</div>
</div>
</div>
- <div class="labels-x" v-if="this.$store.state.settings.games.reversi.showBoardLabels">
+ <div class="labels-x" v-if="this.$store.state.settings.gamesReversiShowBoardLabels">
<span v-for="i in game.map[0].length">{{ String.fromCharCode(64 + i) }}</span>
</div>
</div>
diff --git a/src/client/app/common/views/components/settings/settings.vue b/src/client/app/common/views/components/settings/settings.vue
index 4d4cac0976..0cbc40da57 100644
--- a/src/client/app/common/views/components/settings/settings.vue
+++ b/src/client/app/common/views/components/settings/settings.vue
@@ -472,13 +472,13 @@ export default Vue.extend({
},
games_reversi_showBoardLabels: {
- get() { return this.$store.state.settings.games.reversi.showBoardLabels; },
- set(value) { this.$store.dispatch('settings/set', { key: 'games.reversi.showBoardLabels', value }); }
+ get() { return this.$store.state.settings.gamesReversiShowBoardLabels; },
+ set(value) { this.$store.dispatch('settings/set', { key: 'gamesReversiShowBoardLabels', value }); }
},
games_reversi_useAvatarStones: {
- get() { return this.$store.state.settings.games.reversi.useAvatarStones; },
- set(value) { this.$store.dispatch('settings/set', { key: 'games.reversi.useAvatarStones', value }); }
+ get() { return this.$store.state.settings.gamesReversiUseAvatarStones; },
+ set(value) { this.$store.dispatch('settings/set', { key: 'gamesReversiUseAvatarStones', value }); }
},
disableAnimatedMfm: {
diff --git a/src/client/app/store.ts b/src/client/app/store.ts
index b137f79989..f229a2b7be 100644
--- a/src/client/app/store.ts
+++ b/src/client/app/store.ts
@@ -31,12 +31,8 @@ const defaultSettings = {
wallpaper: null,
webSearchEngine: 'https://www.google.com/?#q={{query}}',
mutedWords: [],
- games: {
- reversi: {
- showBoardLabels: false,
- useAvatarStones: true,
- }
- }
+ gamesReversiShowBoardLabels: false,
+ gamesReversiUseAvatarStones: true,
};
const defaultDeviceSettings = {