show loading indicators when actions are pending

This commit is contained in:
Raven Scott
2025-12-17 20:42:00 -05:00
parent b5eaf9993d
commit a977320bfc
7 changed files with 337 additions and 222 deletions
@@ -56,8 +56,11 @@ async function handleDomainsRoutes(req, res) {
} catch (err) {
// Fallback if plugin system not available
}
// Only add internal domains that aren't already in the resolved list
for (const d of internalDomains) {
resolved.push({ domain: d, hash: 'internal', isLocal: true, isOwner: true });
if (!resolved.some(r => r.domain === d)) {
resolved.push({ domain: d, hash: 'internal', isLocal: true, isOwner: true });
}
}
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify(resolved.sort((a, b) => a.domain.localeCompare(b.domain))));