Ajustement de la pop-in d'infos sur les sauts
This commit is contained in:
@@ -26,14 +26,11 @@ export class ListOfJumpsComponent implements OnInit {
|
||||
];
|
||||
public dataSourceTable;
|
||||
public resultsLength = 0;
|
||||
private showPopinForItemId = -1;
|
||||
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
|
||||
|
||||
constructor(
|
||||
private serviceApi: JumpService,
|
||||
private serviceComm: ServiceComm,
|
||||
public dialog: MatDialog
|
||||
) { }
|
||||
constructor(private serviceApi: JumpService,
|
||||
private serviceComm: ServiceComm,
|
||||
public dialog: MatDialog) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.serviceComm.UpdatedComponentTitle('List of jumps');
|
||||
@@ -52,27 +49,13 @@ export class ListOfJumpsComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
showPopin(event, item) {
|
||||
this.showPopinForItemId = item.id;
|
||||
}
|
||||
|
||||
hidePopin(event, item) {
|
||||
this.showPopinForItemId = -1;
|
||||
}
|
||||
|
||||
calculateClasses(item) {
|
||||
return {
|
||||
'showPopin': this.showPopinForItemId != -1 && item.id === this.showPopinForItemId,
|
||||
};
|
||||
}
|
||||
|
||||
openDialog(item: JumpResp) {
|
||||
this.dialog.open(JumpInfosComponent, {
|
||||
data: item,
|
||||
position: {
|
||||
top: '0px',
|
||||
left: '0px'
|
||||
}
|
||||
data: item //,
|
||||
// position: {
|
||||
// top: '0px',
|
||||
// left: '0px'
|
||||
// }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user