Merged PR 1675: #4457 Fix Filter Routing on Close

#4457 Fix Filter Routing on Close
This commit is contained in:
Nino Righi
2023-11-08 09:42:23 +00:00
committed by Lorenz Hilpert
parent 95baeaa8a8
commit b62259f9b4

View File

@@ -41,6 +41,10 @@ export class PickupShelfFilterComponent {
return this._environment.matchDesktopLarge$.pipe(map((matches) => !(matches && this.sideOutlet === 'search')));
}
get isDesktopLarge() {
return this._environment.matchDesktopLarge();
}
get hasProcessId$() {
return this._activatedRoute?.parent?.params?.pipe(map((params) => !!params?.processId));
}
@@ -54,8 +58,8 @@ export class PickupShelfFilterComponent {
map((params) => {
const hasProcessId = !!params?.processId;
// Ticket #4457 also check the sideOutlet, because order could be still defined in detailsStore
if (!!this.order && this.sideOutlet !== 'search') {
// Ticket #4457 only route to details view if in split-screen
if (!!this.order && this.isDesktopLarge) {
return this._routeToShelfDetails(hasProcessId);
}