fix(auth): attach bearer token to managed-NE import and template download

These raw fetch/navigation paths skipped Authorization after login was required, same class of bug as topology discover stream.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hansjone 2026-07-30 02:34:25 +00:00
parent 325bce0413
commit 658c19e457
2 changed files with 36 additions and 3 deletions

View file

@ -13,7 +13,7 @@ import {
fetchManagedNeMeta,
fetchManagedNeStats,
importManagedNe,
managedNeImportTemplateUrl,
downloadManagedNeImportTemplate,
syncUmeManagedNe,
updateManagedNe,
type ManagedNeStats,
@ -589,7 +589,9 @@ export function NePage() {
</button>
<button
type="button"
onClick={() => window.location.assign(managedNeImportTemplateUrl("xlsx"))}
onClick={() => {
void downloadManagedNeImportTemplate("xlsx").catch((err) => showError(String(err)));
}}
>
{t("managedNe.downloadTemplate")}
</button>