Skip to content

Commit

Permalink
adding marvis minis test results quicklink
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed May 10, 2024
1 parent 1ba69c2 commit e1b2f24
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mist-extension",
"version": "3.7.0",
"version": "3.8.0",
"description": "Generated with @larscom/ng-mist-extension",
"scripts": {
"start": "npm run watch",
Expand Down
13 changes: 13 additions & 0 deletions angular/src/app/pages/api/manage/manage.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,17 @@ export class ApiManageComponent implements OnInit {
}
}
}
forgeSiteDeviceSyntheticTest(detail: string | undefined, host: string, device_type:string): void {
if (detail && this.obj_id) {
const mac = this.getMac(this.obj_id)
if (mac) {
this.quick_links.push({
url: "https://api." + host + "/api/v1/sites/" + this.site_id + "/synthetic_test/search?mac=" + mac,
name: "Marvis Minis Test Results"
})
}
}
}
////////////////////////////////////////////////////////////////////////////////////
////////////////////// ORG OBJ FUNCTION
forgeOrg(host: string) {
Expand Down Expand Up @@ -650,6 +661,7 @@ export class ApiManageComponent implements OnInit {
this.forgeSiteObjectStats("devices", res?.groups?.host, res?.groups?.detail, extra_params);
this.forgeSiteObjectEvents("devices", res?.groups?.obj, res?.groups?.host, res?.groups?.detail);
this.forgeSiteApLastConfig(res?.groups?.detail, res?.groups?.host, res?.groups?.obj);
this.forgeSiteDeviceSyntheticTest(res?.groups?.detail, res?.groups?.host, res?.groups?.obj);
break;
case "switch":
if (["list", "topology", "location"].includes(this.obj_id)) this.obj_id = undefined;
Expand All @@ -666,6 +678,7 @@ export class ApiManageComponent implements OnInit {
this.forgeSiteObjectStats("devices", res?.groups?.host, res?.groups?.detail, extra_params);
this.forgeSiteObjectEvents("devices", res?.groups?.obj, res?.groups?.host, res?.groups?.detail);
this.forgeSiteDiscoveredSwitchUrl(res?.groups?.host);
this.forgeSiteDeviceSyntheticTest(res?.groups?.detail, res?.groups?.host, res?.groups?.obj);
}
break;
case "assets":
Expand Down
2 changes: 1 addition & 1 deletion angular/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Mist Extension",
"short_name": "mist-extension",
"version": "3.7.0",
"version": "3.8.0",
"description": "Web Browser Extension for Mist Developpers to provide easier access to Mist APIs",
"icons": {
"16": "assets/favicon-16x16.png",
Expand Down
2 changes: 1 addition & 1 deletion angular/src/manifest_chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Mist Extension",
"short_name": "mist-extension",
"version": "3.7.0",
"version": "3.8.0",
"description": "Web Browser Extension for Mist Developpers to provide easier access to Mist APIs",
"icons": {
"16": "assets/favicon-16x16.png",
Expand Down
2 changes: 1 addition & 1 deletion angular/src/manifest_ffx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Mist Extension",
"short_name": "mist-extension",
"version": "3.7.0",
"version": "3.8.0",
"description": "Web Browser Extension for Mist Developpers to provide easier access to Mist APIs",
"icons": {
"16": "assets/favicon-16x16.png",
Expand Down

0 comments on commit e1b2f24

Please sign in to comment.