mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
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:
committed by
Nino Righi
parent
384952413b
commit
b792febcb0
@@ -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];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user