mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Merged PR 1675: #4457 Fix Filter Routing on Close
#4457 Fix Filter Routing on Close
This commit is contained in:
committed by
Lorenz Hilpert
parent
95baeaa8a8
commit
b62259f9b4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user