usa-alert--do-not-reset

This commit is contained in:
Rachid Mrad 2025-03-06 21:04:48 -05:00
parent 57f7427141
commit d7447cff96
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -466,7 +466,7 @@ export class NameserverForm {
const mainContent = document.getElementById("main-content");
if (mainContent) {
// Remove all alert elements within the main content area
mainContent.querySelectorAll(".usa-alert").forEach(alert => alert.remove());
mainContent.querySelectorAll(".usa-alert:not(.usa-alert--do-not-reset)").forEach(alert => alert.remove());
} else {
console.warn("Expecting main-content DOM element");
}

View file

@ -12,7 +12,7 @@
{% endfor %}
{% if formset.initial|length >= formset.max_num %}
<div class="usa-alert usa-alert--info usa-alert--slim margin-bottom-2" role="alert">
<div class="usa-alert usa-alert--do-not-reset usa-alert--info usa-alert--slim margin-bottom-2" role="alert">
<div class="usa-alert__body">
<p class="usa-alert__text">
Youve reached the maximum amount of allowed name server records (13).