Début pour afficher une popin affichant les

images dans le profil utilisateur.
This commit is contained in:
Sébastien André
2021-04-06 18:26:34 +02:00
parent 0c6cb2a246
commit 6b927be26a
4 changed files with 61 additions and 8 deletions

View File

@@ -18,6 +18,8 @@ export class ListOfImagesComponent implements OnInit {
public imgForm: FormGroup;
public imageError: string;
private selectedFile: string;
public popinImage: string;
public showPopin: boolean;
public dataSourceTable: MatTableDataSource<ImageResp>;
public resultsLength = 0;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@@ -96,6 +98,18 @@ export class ListOfImagesComponent implements OnInit {
return;
}
this.serviceApi.AddImage(formData.comment, this.selectedFile);
this.serviceApi.AddImage(formData.comment, this.selectedFile)
.subscribe(
() => { this.getListOfImages(); }
);
}
openModal(image: ImageResp){
this.popinImage = image.data;
this.showPopin = true;
}
closeModal() {
this.showPopin = false;
}
}