refactor admin navigation; update links to ingest pages and improve loading of data in parallel
This commit is contained in:
@@ -47,6 +47,8 @@ async function loadIntelCompanies() {
|
||||
if (!sel) return;
|
||||
|
||||
const companies = await api("/admin/api/intelligence/companies");
|
||||
const current = queryGet("company_id"); // preserve selection if url set it
|
||||
|
||||
sel.innerHTML = '<option value="">All companies</option>';
|
||||
companies.forEach(c => {
|
||||
const opt = document.createElement("option");
|
||||
@@ -54,6 +56,8 @@ async function loadIntelCompanies() {
|
||||
opt.textContent = `${c.name} (${c.ticker})`;
|
||||
sel.appendChild(opt);
|
||||
});
|
||||
|
||||
if (current) sel.value = current;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user