Changed toaster messages for queue joining and leaving actions, removed toast that displays updates about the queue.
This commit is contained in:
parent
8b2a35dcce
commit
a4aa3291cd
1 changed files with 6 additions and 2 deletions
|
|
@ -95,8 +95,12 @@ async function handleTTT(): Promise<RouteHandlerReturn> {
|
|||
let curGameX: { id: string, name: string } | null = null;
|
||||
let curGameO: { id: string, name: string } | null = null;
|
||||
|
||||
socket.on('updateInformation', (e) => showInfo(`UpdateInformation: t=${e.totalUser};q=${e.inQueue}`));
|
||||
socket.on('queueEvent', (e) => showInfo(`QueueEvent: ${e}`));
|
||||
socket.on('queueEvent', (e) => {
|
||||
if (joinQueueBtn.innerText !== QueueState.InQueue)
|
||||
showInfo('Queue left!');
|
||||
else
|
||||
showInfo('Queue joined!');
|
||||
});
|
||||
socket.on('newGame', async (gameState) => {
|
||||
showInfo(`newGame: ${gameState.gameId}`)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue