|
87 | 87 | <fa :icon="['fas', 'sign-out-alt']" size="lg" /> |
88 | 88 | </button> |
89 | 89 | </div> |
90 | | - <div v-if="room.owner && showRoomLink && $route.path === '/'" class="linkContainer"> |
| 90 | + <div v-if="room.admin && showRoomLink && $route.path === '/'" class="linkContainer"> |
91 | 91 | <p> |
92 | 92 | Share this link with other players: |
93 | 93 | </p> |
|
117 | 117 |
|
118 | 118 | <PlayersList v-if="room.connected && $route.path !== '/run'" class="playersList" /> |
119 | 119 |
|
120 | | - <div v-if="room.newGameRequest && !room.owner" class="moveToLobby popUp"> |
| 120 | + <div v-if="room.newGameRequest && !room.admin" class="moveToLobby popUp"> |
121 | 121 | <div class="wrapper"> |
122 | 122 | <h2>Room owner wants to start a new game.</h2> |
123 | 123 | <h3>If you want to stay on current page {{ $route.path === '/results' ? 'and continue reading the results' : '' }} you have to leave the room. You can always join again later.</h3> |
@@ -170,7 +170,7 @@ export default { |
170 | 170 | this.$store.commit('SET_ROOM_PROPERTY', ['connected', true]); |
171 | 171 | this.$store.commit('SET_ROOM_PROPERTY', ['name', this.roomName]); |
172 | 172 | this.$store.commit('SET_ROOM_PROPERTY', ['myName', this.playerName]); |
173 | | - this.$store.commit('SET_ROOM_PROPERTY', ['owner', true]); |
| 173 | + this.$store.commit('SET_ROOM_PROPERTY', ['admin', true]); |
174 | 174 | setTimeout(() => this.$refs.closeInfoBtn.focus(), 100); |
175 | 175 | }, |
176 | 176 | room_exist() { |
@@ -230,7 +230,7 @@ export default { |
230 | 230 | }, |
231 | 231 | createRoom() { |
232 | 232 | this.$socket.client.emit('createRoom', { |
233 | | - ownerName: this.playerName, |
| 233 | + adminName: this.playerName, |
234 | 234 | roomName: this.roomName, |
235 | 235 | options: { |
236 | 236 | codeLength: this.options.codeLength, |
@@ -259,7 +259,7 @@ export default { |
259 | 259 | this.$socket.client.close(); |
260 | 260 | this.$store.commit('SET_ROOM_PROPERTY', ['connected', false]); |
261 | 261 | this.$store.commit('SET_ROOM_PROPERTY', ['name', '']); |
262 | | - this.$store.commit('SET_ROOM_PROPERTY', ['owner', false]); |
| 262 | + this.$store.commit('SET_ROOM_PROPERTY', ['admin', false]); |
263 | 263 | this.$store.commit('SET_ROOM_PROPERTY', ['newGameRequest', false]); |
264 | 264 | this.$store.commit('SET_ROOM_PROPERTY', ['players', {}]); |
265 | 265 | if (action) { |
|
0 commit comments