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'"
|
||||
@go-to="state = $event"
|
||||
/>
|
||||
<div
|
||||
<Game-Lobby
|
||||
v-else-if="state == 'lobby'"
|
||||
@go-to="state = $event"
|
||||
>
|
||||
IT'S A LOBBY
|
||||
</div>
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import JoinHost from './components/JoinHost';
|
||||
import GameCodeEntry from './components/GameCode';
|
||||
import WebsocketTests from './components/WebsocketTesting';
|
||||
import GameLobby from './views/Lobby';
|
||||
import JoinHost from './views/JoinHost';
|
||||
import GameCodeEntry from './views/GameCode';
|
||||
import WebsocketTests from './views/WebsocketTesting';
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
|
|
@ -32,6 +30,7 @@ export default {
|
|||
'WS-Test': WebsocketTests,
|
||||
'Game-Code': GameCodeEntry,
|
||||
'Join-Or-Host': JoinHost,
|
||||
'Game-Lobby': GameLobby,
|
||||
},
|
||||
data() {return {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue