Toggle bump buttona via JS

This commit is contained in:
2021-05-02 10:33:14 +02:00
parent 766fd30842
commit 8066862c8a
7 changed files with 26 additions and 14 deletions

View File

@ -5,16 +5,19 @@
></div>
<span class="category_name">{{this.category.name}}</span>
<div class="category_button_container">
{{#if this.category.started}}
<form
action="/category/{{@key}}/bump_session/minutes/5"
id="bump-form-{{@key}}"
method="post"></form>
<button
{{#if this.category.started}}
class="category_bump_button"
{{else}}
class="category_bump_button display_none"
{{/if}}
id="bump-button-{{@key}}"
form="bump-form-{{@key}}"
type="submit">+5m</button>
{{/if}}
<!-- without this extra tag, every even noscript tag seems to not trigger -->
<!-- what is even happening help -->
<noscript></noscript>