Browse Source
Merge pull request #5 from deaflynx/feature/improve-edge-instruction
pull/9245/head
Andrii Landiak
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
6 additions and
2 deletions
-
ui-ngx/src/app/core/http/edge.service.ts
-
ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.scss
-
ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.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)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -131,4 +131,8 @@ |
|
|
|
.tb-form-panel.tb-tab-body { |
|
|
|
padding: 16px 0 0; |
|
|
|
} |
|
|
|
|
|
|
|
.mat-mdc-tab-body { |
|
|
|
padding: 16px 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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; |
|
|
|
|