Disable start button if the process is in progress.
This commit is contained in:
parent
45b6408b6b
commit
2cb9946faf
3 changed files with 12 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
<h2>nl:<br>Druk op de Start knop hieronder om <span style="color:red">UVW</span><span style="color:blue">XYZ</span> te vinden. Je kunt dan de geocache vinden op N 52° 40.<span style="color:red">UVW</span>' E 004° 53.<span style="color:blue">XYZ</span>'</h2>
|
||||
|
||||
<div id="buttonwrap">
|
||||
<button phx-click="start_morse" class="button">Start</button>
|
||||
<button phx-click="start_morse" class="button" <%= if @progress != 100, do: ~s(disabled=disabled) %>>Start</button>
|
||||
<div id="response-block">
|
||||
<h2>Response status:</h2>
|
||||
<p id="response"></p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue