mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 03:30:50 +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.
|
* after displaying modal and performing check for minimum number of nameservers.
|
||||||
* @param {Event} event - Click event
|
* @param {Event} event - Click event
|
||||||
*/
|
*/
|
||||||
|
@ -296,6 +296,8 @@ export class NameserverForm {
|
||||||
deleteRow(editRow) {
|
deleteRow(editRow) {
|
||||||
// Check if at least two nameserver forms exist
|
// Check if at least two nameserver forms exist
|
||||||
const fourthNameserver = document.getElementById('id_form-3-server'); // This should 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) {
|
if (fourthNameserver) {
|
||||||
this.callback = () => {
|
this.callback = () => {
|
||||||
hideElement(editRow);
|
hideElement(editRow);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue