From 232810309cb4a3bfcf48dfefa0d866c5810ebd3d Mon Sep 17 00:00:00 2001 From: deaflynx Date: Thu, 14 Sep 2023 10:00:31 +0300 Subject: [PATCH 1/2] getEdgeDockerInstallInstructions rename to getEdgeInstallInstructions, set default param 'method' --- ui-ngx/src/app/core/http/edge.service.ts | 2 +- .../home/pages/edge/edge-instructions-dialog.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/core/http/edge.service.ts b/ui-ngx/src/app/core/http/edge.service.ts index aac095412b..aeb4f7d16b 100644 --- a/ui-ngx/src/app/core/http/edge.service.ts +++ b/ui-ngx/src/app/core/http/edge.service.ts @@ -114,7 +114,7 @@ export class EdgeService { return this.http.post('/api/edge/bulk_import', entitiesData, defaultHttpOptionsFromConfig(config)); } - public getEdgeDockerInstallInstructions(edgeId: string, method: string, config?: RequestConfig): Observable { + public getEdgeInstallInstructions(edgeId: string, method: string = 'ubuntu', config?: RequestConfig): Observable { return this.http.get(`/api/edge/instructions/${edgeId}/${method}`, defaultHttpOptionsFromConfig(config)); } } diff --git a/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.ts b/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.ts index 51d7e42238..99da1dfb14 100644 --- a/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.ts @@ -85,7 +85,7 @@ export class EdgeInstructionsDialogComponent extends DialogComponent { this.contentData[method] = res.installInstructions; this.loadedInstructions = true; From f8eb27336565c836f8b0c3983e1b11bd92a6a5e3 Mon Sep 17 00:00:00 2001 From: deaflynx Date: Thu, 14 Sep 2023 10:16:00 +0300 Subject: [PATCH 2/2] Edge instructions add top padding --- .../home/pages/edge/edge-instructions-dialog.component.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.scss b/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.scss index 9b4339a66c..05614add89 100644 --- a/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.scss @@ -131,4 +131,8 @@ .tb-form-panel.tb-tab-body { padding: 16px 0 0; } + + .mat-mdc-tab-body { + padding: 16px 0; + } }