load more plan/description don't push to top of page

This commit is contained in:
mchouliara 2024-09-20 12:46:36 +03:00
parent 31accd05a2
commit f7b4b4f0eb
3 changed files with 40 additions and 41 deletions

View File

@ -71,7 +71,6 @@
</div> </div>
</div> </div>
</div> </div>
@if(!isLoading) {
<div class="col-md-12 col-sm-12 col-md-9"> <div class="col-md-12 col-sm-12 col-md-9">
<div *ngFor="let item of listingItems; let i = index"> <div *ngFor="let item of listingItems; let i = index">
<app-description-listing-item-component <app-description-listing-item-component
@ -88,7 +87,6 @@
<div *ngIf="!hasListingItems && hasFilters" class="col-md-12 d-flex justify-content-center pt-4 mt-4 mb-4 pb-4"> <div *ngIf="!hasListingItems && hasFilters" class="col-md-12 d-flex justify-content-center pt-4 mt-4 mb-4 pb-4">
<span class="empty-list">{{'DESCRIPTION-LISTING.EMPTY-LIST' | translate}}</span> <span class="empty-list">{{'DESCRIPTION-LISTING.EMPTY-LIST' | translate}}</span>
</div> </div>
}
</div> </div>
</div> </div>
</div> </div>

View File

@ -56,7 +56,6 @@
</div> </div>
</div> </div>
</div> </div>
@if(!isLoading) {
<div class="col-md-12 col-sm-12 col-md-9"> <div class="col-md-12 col-sm-12 col-md-9">
<div *ngFor="let item of listingItems; let i = index"> <div *ngFor="let item of listingItems; let i = index">
<app-plan-listing-item-component <app-plan-listing-item-component
@ -77,7 +76,6 @@
<div *ngIf="!hasListingItems && hasFilters" class="col-md-12 d-flex justify-content-center pt-4 mt-4 mb-4 pb-4"> <div *ngIf="!hasListingItems && hasFilters" class="col-md-12 d-flex justify-content-center pt-4 mt-4 mb-4 pb-4">
<span class="empty-list">{{'PLAN-LISTING.FILTERS.NO-ITEMS-FOUND' | translate}}</span> <span class="empty-list">{{'PLAN-LISTING.FILTERS.NO-ITEMS-FOUND' | translate}}</span>
</div> </div>
}
</div> </div>
</div> </div>

View File

@ -112,7 +112,10 @@ export abstract class BaseListingComponent<ItemModel, LookupModel extends Lookup
value.page = { offset: 0, size: this.ITEMS_PER_PAGE } value.page = { offset: 0, size: this.ITEMS_PER_PAGE }
} }
this.userSettingsPickerComponent?.resetToDraft(); this.userSettingsPickerComponent?.resetToDraft();
this.router.navigate([], { queryParams: { 'lookup': this.queryParamsService.serializeLookup(value), 'lv': ++this.lv }, replaceUrl: true }); this.router.navigate([], {
queryParams: { 'lookup': this.queryParamsService.serializeLookup(value), 'lv': ++this.lv },
replaceUrl: true
});
} }
changeSetting(lookup: LookupModel): void { changeSetting(lookup: LookupModel): void {