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>
|
<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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue