Browse Source
Merge pull request #9349 from abpframework/fix/v7124
getWithoutPageReset method add to list service
pull/9371/head
Mehmet Erim
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
14 additions and
6 deletions
-
npm/ng-packs/packages/core/src/lib/services/list.service.ts
|
|
|
@ -88,12 +88,11 @@ export class ListService<QueryParamsType = ABP.PageQueryParams> implements OnDes |
|
|
|
|
|
|
|
get = () => { |
|
|
|
this.resetPageWhenUnchanged(); |
|
|
|
this._query$.next(({ |
|
|
|
filter: this._filter || undefined, |
|
|
|
maxResultCount: this._maxResultCount, |
|
|
|
skipCount: this._page * this._maxResultCount, |
|
|
|
sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined, |
|
|
|
} as any) as QueryParamsType); |
|
|
|
this.next(); |
|
|
|
}; |
|
|
|
|
|
|
|
getWithoutPageReset = () => { |
|
|
|
this.next(); |
|
|
|
}; |
|
|
|
|
|
|
|
private delay: MonoTypeOperatorFunction<QueryParamsType>; |
|
|
|
@ -130,6 +129,15 @@ export class ListService<QueryParamsType = ABP.PageQueryParams> implements OnDes |
|
|
|
this._skipCount = 0; |
|
|
|
} else this._skipCount = skipCount; |
|
|
|
} |
|
|
|
|
|
|
|
private next() { |
|
|
|
this._query$.next(({ |
|
|
|
filter: this._filter || undefined, |
|
|
|
maxResultCount: this._maxResultCount, |
|
|
|
skipCount: this._page * this._maxResultCount, |
|
|
|
sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined, |
|
|
|
} as any) as QueryParamsType); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export type QueryStreamCreatorCallback<T, QueryParamsType = ABP.PageQueryParams> = ( |
|
|
|
|