Merged PR 1955: fix(tabs): correct singleton tabs interaction with new tab areas

fix(tabs): correct singleton tabs interaction with new tab areas

    - Fix tab name persistence when switching from Sortiment/Wareneingang to Retoure/Remission
    - Prevent duplicate tab creation when clicking on new areas
    - Ensure correct tab naming for Retoure and Remission areas
    - Update side menu navigation to use consistent tab ID generation
    - Add processResolverFn for backwards compatibility
    - Simplify process bar navigation logic

    Refs: #5345

Related work items: #5345
This commit is contained in:
Lorenz Hilpert
2025-09-18 07:48:45 +00:00
committed by Nino Righi
parent 384952413b
commit b792febcb0
4 changed files with 14 additions and 23 deletions

View File

@@ -26,3 +26,12 @@ export const tabResolverFn: ResolveFn<Tab> = (route) => {
return tab;
};
/// @deprecated use tabResolverFn instead
export const processResolverFn: ResolveFn<Tab> = async (route) => {
const tabService = inject(TabService);
await new Promise((resolve) => setTimeout(resolve, 0));
const id = parseInt(route.params['tabId']);
return tabService.entityMap()[id];
};