Dark Mode gefixt
This commit is contained in:
@@ -7,6 +7,15 @@ window.loadInfrastructure = async function(){
|
||||
const container = document.getElementById("infraView")
|
||||
container.innerHTML = ""
|
||||
|
||||
const formatSubdomainName = (subdomain, domainName) => {
|
||||
if(!subdomain) return domainName || ""
|
||||
if(!domainName) return subdomain
|
||||
|
||||
return subdomain.endsWith("." + domainName) || subdomain === domainName
|
||||
? subdomain
|
||||
: subdomain + "." + domainName
|
||||
}
|
||||
|
||||
resources.forEach(r => {
|
||||
|
||||
let html = `
|
||||
@@ -45,7 +54,7 @@ window.loadInfrastructure = async function(){
|
||||
html += `
|
||||
<div class="infra-sub clickable"
|
||||
onclick='openSubEdit(${JSON.stringify(s)})'>
|
||||
↳ ${s.subdomain}.${s.domain_name}
|
||||
↳ ${formatSubdomainName(s.subdomain, s.domain_name)}
|
||||
</div>
|
||||
`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user