0
0
Fork 0

Add the GameLobby as a view in the main app

This commit is contained in:
Oliver-Akins 2020-12-08 15:52:50 -07:00
parent 43304617d7
commit cbda79b46b

View file

@ -1,6 +1,7 @@
<template> <template>
<div id="app" class="maximize"> <div id="app" class="maximize">
<CreateJoin v-if="gameState == `login`" /> <CreateJoin v-if="gameState == `login`" />
<GameLobby v-else-if="gameState == `lobby`" />
<Attributions /> <Attributions />
</div> </div>
</template> </template>
@ -8,12 +9,14 @@
<script> <script>
import AttributionsBar from "./components/Attributions"; import AttributionsBar from "./components/Attributions";
import CreateJoinGame from "./views/CreateJoin"; import CreateJoinGame from "./views/CreateJoin";
import GameLobby from "./views/Lobby";
export default { export default {
name: `App`, name: `App`,
components: { components: {
"Attributions": AttributionsBar, "Attributions": AttributionsBar,
"CreateJoin": CreateJoinGame, "CreateJoin": CreateJoinGame,
"GameLobby": GameLobby,
}, },
computed: { computed: {
gameState() { gameState() {