From 97556caa95514c6ec8870e43f797ee9c5d9e58e2 Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Thu, 13 Feb 2025 07:56:00 +0100 Subject: [PATCH] refs #1472. Changes in images and imageRepo --- .../components/images/export-image/export-image.component.ts | 5 ++--- .../repository-images/repository-images.component.ts | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ogWebconsole/src/app/components/images/export-image/export-image.component.ts b/ogWebconsole/src/app/components/images/export-image/export-image.component.ts index e54e919..4a4753e 100644 --- a/ogWebconsole/src/app/components/images/export-image/export-image.component.ts +++ b/ogWebconsole/src/app/components/images/export-image/export-image.component.ts @@ -20,13 +20,12 @@ export class ExportImageComponent implements OnInit { public dialogRef: MatDialogRef, private toastService: ToastrService, private router: Router, - @Inject(MAT_DIALOG_DATA) public data: { image: any } + @Inject(MAT_DIALOG_DATA) public data: { image: any, imageImageRepository: any } ) { } ngOnInit(): void { - console.log(this.data); this.loading = true; this.loadRepositories(); } @@ -55,7 +54,7 @@ export class ExportImageComponent implements OnInit { save() { this.loading = true; - this.http.post(`${this.baseUrl}${this.data.image['@id']}/transfer-image`, { + this.http.post(`${this.baseUrl}${this.data.imageImageRepository['@id']}/transfer-image`, { repositories: this.selectedRepositories }).subscribe({ next: (response) => { diff --git a/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.ts b/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.ts index 6e64a71..b0bd74d 100644 --- a/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.ts +++ b/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.ts @@ -237,7 +237,8 @@ export class RepositoryImagesComponent implements OnInit { this.dialog.open(ExportImageComponent, { width: '600px', data: { - image: response + image: response, + imageImageRepository: image } }); },