Loading noctua/web/pages/macros/widgets.html +5 −4 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ data-method="{{ btn.method | default('PUT') }}" data-url="{{ btn.endpoint }}" data-safe-id="{{ safe_id }}" data-inputs="{% for inp in config.inputs %}val{{ loop.index }}-{{ safe_id }}{% if not loop.last %},{% endif %}{% endfor %}" {% if btn.val is defined and btn.val is not none %} data-value='{{ btn.val | tojson }}' {% endif %}> Loading noctua/web/static/js/actions.js +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ document.addEventListener('DOMContentLoaded', () => { const forceCheckbox = document.getElementById(`force-${safeId}`); const isForced = forceCheckbox ? forceCheckbox.checked : false; console.log('[action]', method, `/api${endpoint}`, 'payload:', JSON.stringify(payload)); let finalUrl = `/api${endpoint}`; if (isForced) { finalUrl += '?force=true'; Loading Loading
noctua/web/pages/macros/widgets.html +5 −4 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ data-method="{{ btn.method | default('PUT') }}" data-url="{{ btn.endpoint }}" data-safe-id="{{ safe_id }}" data-inputs="{% for inp in config.inputs %}val{{ loop.index }}-{{ safe_id }}{% if not loop.last %},{% endif %}{% endfor %}" {% if btn.val is defined and btn.val is not none %} data-value='{{ btn.val | tojson }}' {% endif %}> Loading
noctua/web/static/js/actions.js +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ document.addEventListener('DOMContentLoaded', () => { const forceCheckbox = document.getElementById(`force-${safeId}`); const isForced = forceCheckbox ? forceCheckbox.checked : false; console.log('[action]', method, `/api${endpoint}`, 'payload:', JSON.stringify(payload)); let finalUrl = `/api${endpoint}`; if (isForced) { finalUrl += '?force=true'; Loading