enable addbutton when conditions are right (instead of show)

This commit is contained in:
Rachid Mrad 2023-10-30 19:07:54 -04:00
parent 8b2ea986b1
commit 4c67745869
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF

View file

@ -309,7 +309,7 @@ function prepareDeleteButtons(formLabel) {
// Display the add more button if we have less than 13 forms
if (isNameserversForm && forms.length <= 13) {
addButton.classList.remove("display-none");
addButton.classList.removeAttribute("disabled");
}
if (isNameserversForm && forms.length < 3) {