mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
enable addbutton when conditions are right (instead of show)
This commit is contained in:
parent
8b2ea986b1
commit
4c67745869
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ function prepareDeleteButtons(formLabel) {
|
||||||
|
|
||||||
// Display the add more button if we have less than 13 forms
|
// Display the add more button if we have less than 13 forms
|
||||||
if (isNameserversForm && forms.length <= 13) {
|
if (isNameserversForm && forms.length <= 13) {
|
||||||
addButton.classList.remove("display-none");
|
addButton.classList.removeAttribute("disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNameserversForm && forms.length < 3) {
|
if (isNameserversForm && forms.length < 3) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue