diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/create-image/create-image.component.ts b/ogWebconsole/src/app/components/groups/components/client-main-view/create-image/create-image.component.ts
index bf413eb..2f4e8d9 100644
--- a/ogWebconsole/src/app/components/groups/components/client-main-view/create-image/create-image.component.ts
+++ b/ogWebconsole/src/app/components/groups/components/client-main-view/create-image/create-image.component.ts
@@ -263,10 +263,6 @@ export class CreateClientImageComponent implements OnInit{
this.toastService.error('Debes seleccionar un repositorio Git');
return;
}
- if (this.gitAction === 'update' && !this.selectedExistingImage) {
- this.toastService.error('Debes seleccionar un repositorio de imágenes Git');
- return;
- }
}
if (this.imageType === 'monolithic') {
@@ -295,24 +291,39 @@ export class CreateClientImageComponent implements OnInit{
if (result !== undefined) {
this.loading = true;
- let payload: any = {
- client: `/clients/${this.clientId}`,
- partition: this.selectedPartition['@id'],
- source: 'assistant',
- type: this.imageType,
- queue: result
- };
+ let endpoint: string;
+ let payload: any;
if (this.imageType === 'git') {
- payload.gitRepository = this.selectedGitRepository.name
- payload.name = this.selectedGitRepository.name;
-
- if (this.gitAction === 'create') {
- payload.action = 'create';
+ if (this.gitAction === 'update') {
+ endpoint = `${this.baseUrl}/git-repositories/update-image`;
+ payload = {
+ client: `/clients/${this.clientId}`,
+ partition: this.selectedPartition['@id'],
+ gitRepository: this.selectedGitRepository.name,
+ queue: result
+ };
} else {
- payload.action = 'update';
+ endpoint = `${this.baseUrl}/images`;
+ payload = {
+ client: `/clients/${this.clientId}`,
+ partition: this.selectedPartition['@id'],
+ type: this.imageType,
+ gitRepository: this.selectedGitRepository.name,
+ name: this.selectedGitRepository.name,
+ action: 'create',
+ queue: result
+ };
}
} else {
+ endpoint = `${this.baseUrl}/images`;
+ payload = {
+ client: `/clients/${this.clientId}`,
+ partition: this.selectedPartition['@id'],
+ type: this.imageType,
+ queue: result
+ };
+
if (this.monolithicAction === 'create') {
payload.name = this.name;
payload.action = 'create';
@@ -322,7 +333,7 @@ export class CreateClientImageComponent implements OnInit{
}
}
- this.http.post(`${this.baseUrl}/images`, payload)
+ this.http.post(endpoint, payload)
.subscribe({
next: (response) => {
let actionText = 'creación';
diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.css b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.css
index 8cdb3e0..9c60bbe 100644
--- a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.css
+++ b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.css
@@ -519,4 +519,73 @@ table {
}
}
+.commits-table-container {
+ margin-top: 20px;
+}
+
+::ng-deep .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
+ color: white !important;
+ border-radius: 20px !important;
+ font-weight: 500 !important;
+ font-size: 12px !important;
+ padding: 8px 16px !important;
+ margin: 2px !important;
+ box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
+ transition: all 0.3s ease !important;
+ border: none !important;
+}
+
+::ng-deep .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary:hover {
+ transform: translateY(-1px) !important;
+ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
+}
+
+::ng-deep .mat-chip.mat-standard-chip.mat-primary {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
+ color: white !important;
+ border-radius: 20px !important;
+ font-weight: 500 !important;
+ font-size: 12px !important;
+ padding: 8px 16px !important;
+ margin: 2px !important;
+ box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
+ transition: all 0.3s ease !important;
+ border: none !important;
+}
+
+::ng-deep .mat-chip.mat-standard-chip.mat-primary:hover {
+ transform: translateY(-1px) !important;
+ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
+}
+
+::ng-deep .custom-tag-chip.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary {
+ background: rgba(102, 126, 234, 0.1) !important;
+ color: #667eea !important;
+ border: 1px solid rgba(102, 126, 234, 0.3) !important;
+ border-radius: 8px !important;
+ font-weight: 500 !important;
+ font-size: 10px !important;
+ padding: 2px 6px !important;
+ margin: 1px !important;
+ box-shadow: none !important;
+ transition: all 0.3s ease !important;
+}
+
+::ng-deep .custom-tag-chip.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary:hover {
+ background: rgba(102, 126, 234, 0.15) !important;
+ border-color: rgba(102, 126, 234, 0.5) !important;
+ transform: translateY(-1px) !important;
+}
+
+.no-tags-text {
+ color: #999;
+ font-style: italic;
+ font-size: 12px;
+ padding: 4px 8px;
+ background: #f8f9fa;
+ border-radius: 12px;
+ border: 1px dashed #dee2e6;
+}
+
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 442a438..59bf1f5 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
@@ -129,11 +129,18 @@
Seleccionar | @@ -162,8 +169,11 @@ | Tags |
|
---|