support: Show scrub realm button only when realm is deactivated.

This commit is contained in:
Lauryn Menard
2025-06-17 19:50:34 +02:00
committed by Tim Abbott
parent 696bdf0b17
commit 405dc6131f
2 changed files with 8 additions and 5 deletions

View File

@@ -180,7 +180,7 @@
{% endwith %}
</div>
{% endif %}
{% if realm.deactivated %}
<form method="POST" class="scrub-realm-form support-form">
<h3>❌ Scrub realm</h3>
{{ csrf_input }}
@@ -188,5 +188,6 @@
<input type="hidden" name="scrub_realm" value="true" />
<button data-string-id="{{realm.string_id}}" class="scrub-realm-button">Scrub realm (danger)</button>
</form>
{% endif %}
</div>
{% endif %}