Skip to content

Commit 4cbf72e

Browse files
committed
fix inventory quick links
1 parent 2555be9 commit 4cbf72e

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

angular/src/app/pages/api/manage/manage.component.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -986,16 +986,11 @@ export class ApiManageComponent implements OnInit {
986986
this.forgeOrgObject("logs", res?.groups?.host, res?.groups?.detail, "message=\"accessed%20org%20\"", "access logs");
987987
break;
988988
case "apinventory":
989-
this.obj_name = "inventory";
990-
this.forgeOrgObject("inventory", res?.groups?.host, res?.groups?.detail, null);
991-
this.obj_name = "APs inventory";
992-
this.forgeOrgObject("inventory", res?.groups?.host, res?.groups?.detail, "type=ap");
993-
this.obj_name = "Switches inventory";
994-
this.forgeOrgObject("inventory", res?.groups?.host, res?.groups?.detail, "type=switch");
995-
this.obj_name = "Gateways inventory";
996-
this.forgeOrgObject("inventory", res?.groups?.host, res?.groups?.detail, "type=gateway");
997-
this.obj_name = "Other Device inventory";
998-
this.forgeOrgObject("otherdevices", res?.groups?.host, res?.groups?.detail);
989+
const url = "https://api." + res?.groups?.host + "/api/v1/orgs/" + this.org_id + "/inventory";
990+
this.quick_links.push({ url: url, name: "inventory" });
991+
this.quick_links.push({ url: url + "?type=ap", name: "aps inventory" });
992+
this.quick_links.push({ url: url + "?type=switch", name: "switches inventory" });
993+
this.quick_links.push({ url: url + "?type=gateway", name: "gateways inventory" });
999994
break;
1000995
case "adminconfig":
1001996
this.setName("admin", res?.groups?.detail);

0 commit comments

Comments
 (0)