Properly handle DNS slave zones

This commit is contained in:
2020-01-30 18:48:19 -05:00
parent dd1809473c
commit 772b24ad8f
5 changed files with 268 additions and 2 deletions

View File

@ -320,6 +320,12 @@ import { settings, elements, apiGet, parseParams, setupHeader } from "/global.js
{
data.domain = response;
// Redirect if this is a slave zone
if (data.domain.type == "slave") {
location.href = "/dns/domain_slave?did=" + data.domain.id;
return;
}
// Set page title and header stuff
document.title += " // " + data.domain.domain;
ui.domainLabel.innerHTML = data.domain.domain;