Add the GameLobby as a view in the main app
This commit is contained in:
parent
43304617d7
commit
cbda79b46b
1 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div id="app" class="maximize">
|
||||
<CreateJoin v-if="gameState == `login`" />
|
||||
<GameLobby v-else-if="gameState == `lobby`" />
|
||||
<Attributions />
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -8,12 +9,14 @@
|
|||
<script>
|
||||
import AttributionsBar from "./components/Attributions";
|
||||
import CreateJoinGame from "./views/CreateJoin";
|
||||
import GameLobby from "./views/Lobby";
|
||||
|
||||
export default {
|
||||
name: `App`,
|
||||
components: {
|
||||
"Attributions": AttributionsBar,
|
||||
"CreateJoin": CreateJoinGame,
|
||||
"GameLobby": GameLobby,
|
||||
},
|
||||
computed: {
|
||||
gameState() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue