refs #1472. Changes in images and imageRepo
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
parent
805c0026bc
commit
97556caa95
|
@ -20,13 +20,12 @@ export class ExportImageComponent implements OnInit {
|
|||
public dialogRef: MatDialogRef<ExportImageComponent>,
|
||||
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<any>(`${this.baseUrl}${this.data.image['@id']}/transfer-image`, {
|
||||
this.http.post<any>(`${this.baseUrl}${this.data.imageImageRepository['@id']}/transfer-image`, {
|
||||
repositories: this.selectedRepositories
|
||||
}).subscribe({
|
||||
next: (response) => {
|
||||
|
|
|
@ -237,7 +237,8 @@ export class RepositoryImagesComponent implements OnInit {
|
|||
this.dialog.open(ExportImageComponent, {
|
||||
width: '600px',
|
||||
data: {
|
||||
image: response
|
||||
image: response,
|
||||
imageImageRepository: image
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue