refs #1693. Convert Image. Webhook updated.
parent
294e85508b
commit
bd14cbcfd0
|
@ -1,12 +1,18 @@
|
||||||
<h2 mat-dialog-title>Convertir imagene virtual hacia {{ data.name }}</h2>
|
<h2 mat-dialog-title>Convertir imagen virtual </h2>
|
||||||
|
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
<p >Repositorio destino: {{ data.name }}</p>
|
||||||
|
|
||||||
<mat-form-field appearance="fill" class="full-width">
|
<mat-form-field appearance="fill" class="full-width">
|
||||||
<mat-label>Imagen</mat-label>
|
<mat-label>Imagen</mat-label>
|
||||||
<input matInput [(ngModel)]="imageName" placeholder="Introduzca el nombre de la imagen a importar."
|
<input matInput [(ngModel)]="imageName" placeholder="Introduzca el nombre de la imagen a importar."
|
||||||
/>
|
/>
|
||||||
<mat-hint>El nombre de la imagen tiene que ir con la extensión. </mat-hint>
|
<mat-hint>El nombre de la imagen tiene que ir con la extensión. </mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
<mat-form-field appearance="fill" class="full-width">
|
||||||
|
<mat-label>Filesystem</mat-label>
|
||||||
|
<input matInput [(ngModel)]="filesystem" placeholder="Introduzca el sistema de archivos."/>
|
||||||
|
</mat-form-field>
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|
||||||
<mat-dialog-actions>
|
<mat-dialog-actions>
|
||||||
|
|
|
@ -13,6 +13,7 @@ export class ConvertImageComponent {
|
||||||
baseUrl: string = import.meta.env.NG_APP_BASE_API_URL;
|
baseUrl: string = import.meta.env.NG_APP_BASE_API_URL;
|
||||||
loading: boolean = true;
|
loading: boolean = true;
|
||||||
imageName: string = '';
|
imageName: string = '';
|
||||||
|
filesystem: string = '';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private http: HttpClient,
|
private http: HttpClient,
|
||||||
|
@ -31,7 +32,8 @@ export class ConvertImageComponent {
|
||||||
save() {
|
save() {
|
||||||
console.log(this.data?.repositoryUuid)
|
console.log(this.data?.repositoryUuid)
|
||||||
this.http.post<any>(`${this.baseUrl}/image-repositories/${this.data?.repositoryUuid}/convert-image`, {
|
this.http.post<any>(`${this.baseUrl}/image-repositories/${this.data?.repositoryUuid}/convert-image`, {
|
||||||
name: this.imageName
|
name: this.imageName,
|
||||||
|
filesystem: this.filesystem
|
||||||
}).subscribe({
|
}).subscribe({
|
||||||
next: (response) => {
|
next: (response) => {
|
||||||
this.toastService.success('Peticion de conversion de imagen enviada correctamente');
|
this.toastService.success('Peticion de conversion de imagen enviada correctamente');
|
||||||
|
|
Loading…
Reference in New Issue