Make the button components use the click listen instead of the handler
This commit is contained in:
parent
4bdbe8f231
commit
7b4826dfbc
3 changed files with 6 additions and 6 deletions
|
|
@ -92,7 +92,7 @@ function toggleOptionsModal() {
|
|||
<div class="sci-fi-box">
|
||||
<div class="info-button-container">
|
||||
<SciFiButton
|
||||
handler={toggleOptionsModal}
|
||||
on:click={_ => modal.options = true}
|
||||
height="60px"
|
||||
width="60px"
|
||||
>
|
||||
|
|
@ -119,14 +119,14 @@ function toggleOptionsModal() {
|
|||
<div class="flex-row">
|
||||
<SciFiButton
|
||||
title="Starts the game"
|
||||
handler={tempButtonHandler}
|
||||
on:click={tempButtonHandler}
|
||||
>
|
||||
Start Game
|
||||
</SciFiButton>
|
||||
<SciFiButton
|
||||
title="Delete the lobby, preventing further games from being played"
|
||||
background="#ff0000"
|
||||
handler={tempButtonHandler}
|
||||
on:click={tempButtonHandler}
|
||||
>
|
||||
Delete Game
|
||||
</SciFiButton>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue