Move copy link button to button box
This commit is contained in:
parent
5385f7be04
commit
6ecf0388bb
2 changed files with 10 additions and 8 deletions
|
|
@ -224,6 +224,15 @@ class GameServer {
|
|||
</button>,
|
||||
);
|
||||
}
|
||||
} else if (this.gomoku.status === 'waiting') {
|
||||
buttons.push(
|
||||
<button id="copy-link-button" onclick="copyGameLink()">
|
||||
<svg class="icon" alt="Copy">
|
||||
<use href="/icons/clipboard-copy.svg"></use>
|
||||
</svg>
|
||||
<span id="copy-link-text">Click to copy game link!</span>
|
||||
</button>,
|
||||
);
|
||||
}
|
||||
|
||||
conn.ws.send(<div id="button-box">{buttons}</div>);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue