Skip to content

Commit

Permalink
show hint if too few players
Browse files Browse the repository at this point in the history
  • Loading branch information
tomboe311 committed Apr 5, 2021
1 parent 2da5f6c commit 53e9b4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/GameConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ app.component('game-configuration', {
`<div v-if="!started">
<h2>{{ title }}</h2>
<p>{{ desc }} <span><button v-on:click="newPlayer" class="btn btn-sm btn-success">Add new Player</button></span></p>
<div v-if="players.length <= 2" class="alert alert-danger" role="alert">At least 3 players needed!</div>
<div id="players">
<div
v-for="(player, index) in players"
Expand Down

0 comments on commit 53e9b4d

Please sign in to comment.