Forráskód Böngészése

Fixed missing test to properly fill ko-fi enable checkbox based on kofi.py

deadtom 1 hónapja
szülő
commit
316fd13a18
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      ownchatbot/templates/mgmt.html

+ 4 - 0
ownchatbot/templates/mgmt.html

@@ -389,7 +389,11 @@
                     </thead>
                     <tr>
                         <td> <label for="k_integration">Enable:</label> </td>
+                        {% if kofi_settings['integration'] %}
                         <td> <input id="k_integration" type="checkbox" name="k_integration" value="{{ kofi_settings['integration'] }}" checked> </td>
+                        {% else %}
+                        <td> <input id="k_integration" type="checkbox" name="k_integration" value="{{ kofi_settings['integration'] }}"> </td>
+                        {% endif %}
                         <td>Enable Ko-fi integration.</td>
                     </tr>
                     <tr>