Make the discard hand button actually emit to the server.
This commit is contained in:
parent
fe9e272926
commit
6db083e699
1 changed files with 4 additions and 5 deletions
|
|
@ -63,12 +63,11 @@ export default {
|
||||||
*/
|
*/
|
||||||
this.confirmVisible = false;
|
this.confirmVisible = false;
|
||||||
|
|
||||||
let data = {
|
|
||||||
team: this.$store.state.team,
|
|
||||||
};
|
|
||||||
|
|
||||||
console.debug(`Telling server to discard team's hand.`);
|
console.debug(`Telling server to discard team's hand.`);
|
||||||
// TODO -> send data to server
|
this.$socket.client.emit(`NewHand`, {
|
||||||
|
game_code: this.$store.state.game_code,
|
||||||
|
team: this.$store.state.team
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue