Browse Source

getEdgeDockerInstallInstructions rename to getEdgeInstallInstructions, set default param 'method'

pull/9245/head
deaflynx 3 years ago
parent
commit
232810309c
  1. 2
      ui-ngx/src/app/core/http/edge.service.ts
  2. 2
      ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.ts

2
ui-ngx/src/app/core/http/edge.service.ts

@ -114,7 +114,7 @@ export class EdgeService {
return this.http.post<BulkImportResult>('/api/edge/bulk_import', entitiesData, defaultHttpOptionsFromConfig(config));
}
public getEdgeDockerInstallInstructions(edgeId: string, method: string, config?: RequestConfig): Observable<EdgeInstallInstructions> {
public getEdgeInstallInstructions(edgeId: string, method: string = 'ubuntu', config?: RequestConfig): Observable<EdgeInstallInstructions> {
return this.http.get<EdgeInstallInstructions>(`/api/edge/instructions/${edgeId}/${method}`, defaultHttpOptionsFromConfig(config));
}
}

2
ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.ts

@ -85,7 +85,7 @@ export class EdgeInstructionsDialogComponent extends DialogComponent<EdgeInstruc
getInstructions(method: string) {
if (!this.contentData[method]) {
this.loadedInstructions = false;
this.edgeService.getEdgeDockerInstallInstructions(this.data.edge.id.id, method).subscribe(
this.edgeService.getEdgeInstallInstructions(this.data.edge.id.id, method).subscribe(
res => {
this.contentData[method] = res.installInstructions;
this.loadedInstructions = true;

Loading…
Cancel
Save