Début pour afficher une popin affichant les
images dans le profil utilisateur.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user