mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 11:16:07 +02:00
added clarifying comment
This commit is contained in:
parent
60cdea0ac4
commit
a4affecfbe
1 changed files with 3 additions and 1 deletions
|
@ -269,7 +269,7 @@ export class NameserverForm {
|
|||
}
|
||||
|
||||
/**
|
||||
* Handles clicking a 'Delete' button on a readonly row in a kebab, which hattempts to delete the nameserver
|
||||
* Handles clicking a 'Delete' button on a readonly row in a kebab, which attempts to delete the nameserver
|
||||
* after displaying modal and performing check for minimum number of nameservers.
|
||||
* @param {Event} event - Click event
|
||||
*/
|
||||
|
@ -296,6 +296,8 @@ export class NameserverForm {
|
|||
deleteRow(editRow) {
|
||||
// Check if at least two nameserver forms exist
|
||||
const fourthNameserver = document.getElementById('id_form-3-server'); // This should exist
|
||||
// This checks that at least 3 nameservers exist prior to the delete of a row, and if not
|
||||
// display an error alert
|
||||
if (fourthNameserver) {
|
||||
this.callback = () => {
|
||||
hideElement(editRow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue