From 3390500f065fc18ad4df566cf78d2f3c9fb42232 Mon Sep 17 00:00:00 2001 From: jmbardallo Date: Thu, 9 Jul 2026 13:51:10 +0200 Subject: [PATCH] fix(deploy-image): show instructions in cache mode and refactor to @if/@for syntax --- .../deploy-image/deploy-image.component.html | 80 +++++++++++++------ 1 file changed, 55 insertions(+), 25 deletions(-) diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.html b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.html index 6b89b06..48aa5da 100644 --- a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.html +++ b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.html @@ -52,7 +52,8 @@
-
+ @for (client of clientData; track client) { +
@@ -73,6 +74,7 @@
+ }
@@ -99,46 +101,61 @@
-
+ @if (imageType === 'monolithic') { +
{{ 'selectDeployMethod' | translate }} - {{ method.name }} + @for (method of allMethods; track method.value) { + {{ method.name }} + } {{ 'selectImagePrompt' | translate }} - + @for (image of images; track image.uuid || $index) { +
{{ image.name }}
{{ image.description }}
+ }
+ } -
+ @if (imageType === 'git') { +
{{ 'buttonSelectRepository' | translate }} - + @for (repo of repositories; track repo) { + {{ repo }} + } - hourglass_empty + @if (loadingRepositories) { + hourglass_empty + } {{ 'buttonSelectBranch' | translate }} - + @for (branch of branches; track branch) { + {{ branch }} + } - hourglass_empty + @if (loadingBranches) { + hourglass_empty + } @@ -149,6 +166,7 @@
+ } @if (imageType === 'monolithic' && selectedMethod && needsAdvancedConfig(selectedMethod)) { @@ -182,9 +200,11 @@ } -
+ @if (errorMessage) { +
{{ errorMessage }}
+ }
@@ -221,6 +241,22 @@
} + + @if (showInstructions) { +
+ + + {{ 'generatedInstructions' | translate }} + + +
{{ ogInstructions }}
+
+
+
+ } + @if (deployMode !== 'update-cache') {
@@ -229,18 +265,6 @@ {{ 'partitionSelection' | translate }}
-
- - - {{ 'generatedInstructions' | translate }} - - -
{{ ogInstructions }}
-
-
-
-
+ @if (imageType === 'git' && filteredCommits.length > 0) { +
history {{ 'commitSelection' | translate }}
@@ -309,11 +334,15 @@ {{ 'labelTags' | translate }} - {{ tag }} - {{ 'noTags' | translate }} + } + @if (!commit.tags || commit.tags.length === 0) { + {{ 'noTags' | translate }} + } @@ -322,6 +351,7 @@
+ }