Change SOA column to last modified

This commit is contained in:
L. Bradley LaBoon 2022-10-19 13:07:52 -04:00
parent 65f189d7a2
commit 3b7e18ff88

View File

@ -63,9 +63,10 @@ import { settings, elements, apiGet, parseParams, setupHeader } from "/global.js
type.innerHTML = domain.type;
row.appendChild(type);
var email = document.createElement("td");
email.innerHTML = domain.soa_email;
row.appendChild(email);
var modified = document.createElement("td");
var modifiedDate = new Date(domain.updated + "Z");
modified.innerHTML = modifiedDate.toLocaleString();
row.appendChild(modified);
var status = document.createElement("td");
status.innerHTML = domain.status.charAt(0).toUpperCase() + domain.status.slice(1).replace(/_/g, " ");
@ -107,7 +108,7 @@ import { settings, elements, apiGet, parseParams, setupHeader } from "/global.js
title.innerHTML = tag;
headRow1.appendChild(title);
var headRow2 = document.createElement("tr");
var cells = ["Domain Zone", "Type", "SOA Email", "Status", "Options"];
var cells = ["Domain Zone", "Type", "Last Modified", "Status", "Options"];
title.colspan = cells.length;
for (var i = 0; i < cells.length; i++) {
var cell = document.createElement("td");