mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1614: #4238 Removed QueryChangeDebounce
#4238 Removed QueryChangeDebounce
This commit is contained in:
committed by
Lorenz Hilpert
parent
526ba9f2a0
commit
08601203df
@@ -22,7 +22,6 @@
|
||||
(search)="search(filter)"
|
||||
[hint]="message$ | async"
|
||||
[scanner]="true"
|
||||
(queryChange)="queryChangeDebounce()"
|
||||
></shared-filter-input-group-main>
|
||||
<a
|
||||
*ngIf="!(isDesktop$ | async)"
|
||||
|
||||
@@ -21,8 +21,6 @@ export class CustomerOrderSearchMainComponent implements OnInit, OnDestroy {
|
||||
|
||||
loading$ = this._customerOrderSearchStore.fetching$;
|
||||
|
||||
queryChanged$ = new BehaviorSubject<boolean>(false);
|
||||
|
||||
message$ = this._customerOrderSearchStore.message$;
|
||||
|
||||
lastProcessId: number | undefined;
|
||||
@@ -86,7 +84,6 @@ export class CustomerOrderSearchMainComponent implements OnInit, OnDestroy {
|
||||
combineLatest([this.processId$, this._activatedRoute.queryParams])
|
||||
.pipe(debounceTime(50))
|
||||
.subscribe(([processId, queryParams]) => {
|
||||
this.queryChanged$.next(false);
|
||||
this.removeBreadcrumbs(processId);
|
||||
this.updateBreadcrumb(processId, queryParams);
|
||||
})
|
||||
@@ -190,9 +187,4 @@ export class CustomerOrderSearchMainComponent implements OnInit, OnDestroy {
|
||||
await this._router.navigate([], { queryParams });
|
||||
this.updateBreadcrumb(processId, queryParams);
|
||||
}
|
||||
|
||||
queryChangeDebounce = debounce(async () => {
|
||||
this.queryChanged$.next(true);
|
||||
await this.updateQueryParams(this.processId);
|
||||
}, 500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user