diff --git a/app/sovran_systemsos_web/static/js/features.js b/app/sovran_systemsos_web/static/js/features.js index 2bdc568..5e239bf 100644 --- a/app/sovran_systemsos_web/static/js/features.js +++ b/app/sovran_systemsos_web/static/js/features.js @@ -132,6 +132,84 @@ function openDomainSetupModal(feat, onSaved) { $domainSetupModal.classList.add("open"); } +function openDomainReconfigureModal(feat, existingDomain, onSaved) { + if (!$domainSetupModal) return; + if ($domainSetupTitle) $domainSetupTitle.textContent = "🔄 Reconfigure Domain — " + feat.name; + + var npubField = ""; + if (feat.id === "haven") { + var currentNpub = ""; + if (feat.extra_fields && feat.extra_fields.length > 0) { + for (var i = 0; i < feat.extra_fields.length; i++) { + if (feat.extra_fields[i].id === "nostr_npub") { + currentNpub = feat.extra_fields[i].current_value || ""; + break; + } + } + } + npubField = '
'; + } + + var externalIp = _cachedExternalIp || "your external IP"; + var currentDomain = existingDomain || ""; + + $domainSetupBody.innerHTML = + 'Your domain ' + escHtml(currentDomain || "this domain") + ' is configured but isn\'t resolving correctly.
' + + 'Troubleshooting steps:
' + + 'ℹ Paste the full curl command from your Njal.la dashboard\'s Dynamic record
Could not load service details.
';