WIP: list scrolling
This commit is contained in:
@@ -14,6 +14,6 @@
|
||||
<td mat-cell *matCellDef="let element">{{LayerType[element.type]}}</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns, sticky: true"></tr>
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns, sticky: false"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;" [routerLink]="['Detail/', row.id]"></tr>
|
||||
</table>
|
||||
@@ -29,7 +29,7 @@ export class LayersListComponent implements OnInit {
|
||||
LayerType = LayerType;
|
||||
|
||||
start = 0;
|
||||
limit = 50;
|
||||
limit = 200;
|
||||
end: number = this.limit + this.start;
|
||||
loadingInProgress = false;
|
||||
|
||||
@@ -40,7 +40,7 @@ export class LayersListComponent implements OnInit {
|
||||
private _http: HttpClient,
|
||||
) { }
|
||||
|
||||
@HostListener('document:scroll', ['$event'])
|
||||
//@HostListener('document:scroll', ['$event'])
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
public async onScroll(event: any) {
|
||||
console.log('on scrool', event);
|
||||
|
||||
@@ -7,8 +7,8 @@ export const environment = {
|
||||
appName: "LOCAL_DiunaBI",
|
||||
production: false,
|
||||
api: {
|
||||
url: "http://localhost:5400/api"
|
||||
//url: "https://diunabi-morska.bim-it.pl/api"
|
||||
//url: "http://localhost:5400/api"
|
||||
url: "https://diunabi-morska.bim-it.pl/api"
|
||||
},
|
||||
google: {
|
||||
clientId: "107631825312-bkfe438ehr9k9ecb2h76g802tj6advma.apps.googleusercontent.com"
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace WebAPI.Controllers
|
||||
{
|
||||
if (codes != null && codes.Length > 0)
|
||||
{
|
||||
|
||||
return Ok(db.Layers.Where(x => !x.IsDeleted)
|
||||
.Where(x => codes.Select(Int32.Parse).ToList().Contains(x.Number))
|
||||
.OrderByDescending(x => x.Number)
|
||||
|
||||
Reference in New Issue
Block a user