Skip to content

Commit 58690cf

Browse files
Delete Button bugfix due to changed delete manual function
1 parent ca15bc1 commit 58690cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dockflare/app/templates/status_page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,12 @@ <h2 class="card-title text-2xl sm:text-3xl border-b border-base-300 pb-3 mb-6">
323323
</td>
324324
<td class="p-3 whitespace-nowrap text-sm" style="min-width: 80px;">
325325
{% if details.source == 'manual' %}
326-
<form action="{{ url_for('web.ui_delete_manual_rule_route', rule_key_from_url=rule_key) }}" method="post" onsubmit="return confirm('Are you sure you want to delete the manual rule for {{ hostname }}?');" class="protocol-aware-form">
326+
<form action="{{ url_for('web.ui_delete_manual_rule_route', rule_key_from_url=hostname) }}" method="post" onsubmit="return confirm('Are you sure you want to delete the manual rule for {{ details.hostname_for_dns }}{{ details.path if details.path else \'\' }}?');" class="protocol-aware-form">
327327
<button type="submit" class="btn btn-xs btn-error btn-outline">Delete</button>
328328
</form>
329329
{% else %}
330-
<form action="{{ url_for('web.force_delete_rule_route', hostname=hostname) }}" method="post" onsubmit="return confirm('Are you sure you want to force delete the rule and DNS record for {{ hostname }} immediately? This bypasses the grace period.');" class="protocol-aware-form">
330+
{# Force delete for Docker rules - uses 'hostname' which is the rule_key #}
331+
<form action="{{ url_for('web.force_delete_rule_route', hostname=hostname) }}" method="post" onsubmit="return confirm('Are you sure you want to force delete the rule and DNS record for {{ details.hostname_for_dns }}{{ details.path if details.path else \'\' }} immediately? This bypasses the grace period.');" class="protocol-aware-form">
331332
<button type="submit" class="btn btn-xs btn-error btn-outline" {{ 'disabled' if not docker_available else '' }}>Delete</button>
332333
</form>
333334
{% endif %}

0 commit comments

Comments
 (0)