diff --git a/web/src/views/Lobby.vue b/web/src/views/Lobby.vue
index 4755566..af8afff 100644
--- a/web/src/views/Lobby.vue
+++ b/web/src/views/Lobby.vue
@@ -24,9 +24,9 @@
+
+
@@ -61,6 +67,9 @@ export default {
gameCode() {
return this.$store.state.game_code;
},
+ canRandomize() {
+ return this.$store.state.is_host;
+ },
},
methods: {
copySuccess() {
@@ -92,7 +101,12 @@ export default {
startGame() {
this.$socket.client.emit(`StartGame`, {
game_code: this.gameCode
- })
+ });
+ },
+ randomizeTeams() {
+ this.$socket.client.emit(`RandomizeTeams`, {
+ game_code: this.gameCode
+ });
},
},
sockets: {
@@ -126,6 +140,7 @@ export default {
justify-content: center;
align-items: stretch;
display: flex;
+ flex-wrap: wrap;
}
button {
@@ -139,4 +154,10 @@ button {
}
button:hover { background-color: var(--background2-darken); }
button:focus { background-color: var(--background2-lighten); }
+
+
+div.new-line {
+ width: 100% !important;
+ height: 0px;
+}
\ No newline at end of file