Add lobby state to the component switcher.
This commit is contained in:
parent
c5f58c1833
commit
a3ddddb131
1 changed files with 7 additions and 8 deletions
15
src/App.vue
15
src/App.vue
|
|
@ -12,19 +12,17 @@
|
||||||
v-else-if="state == 'game-code'"
|
v-else-if="state == 'game-code'"
|
||||||
@go-to="state = $event"
|
@go-to="state = $event"
|
||||||
/>
|
/>
|
||||||
<div
|
<Game-Lobby
|
||||||
v-else-if="state == 'lobby'"
|
v-else-if="state == 'lobby'"
|
||||||
@go-to="state = $event"
|
/>
|
||||||
>
|
|
||||||
IT'S A LOBBY
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import JoinHost from './components/JoinHost';
|
import GameLobby from './views/Lobby';
|
||||||
import GameCodeEntry from './components/GameCode';
|
import JoinHost from './views/JoinHost';
|
||||||
import WebsocketTests from './components/WebsocketTesting';
|
import GameCodeEntry from './views/GameCode';
|
||||||
|
import WebsocketTests from './views/WebsocketTesting';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
|
|
@ -32,6 +30,7 @@ export default {
|
||||||
'WS-Test': WebsocketTests,
|
'WS-Test': WebsocketTests,
|
||||||
'Game-Code': GameCodeEntry,
|
'Game-Code': GameCodeEntry,
|
||||||
'Join-Or-Host': JoinHost,
|
'Join-Or-Host': JoinHost,
|
||||||
|
'Game-Lobby': GameLobby,
|
||||||
},
|
},
|
||||||
data() {return {
|
data() {return {
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue