mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 21:50:47 +08:00
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:
parent
325bce0413
commit
658c19e457
2 changed files with 36 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue