mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
FIX Routing Kundenalage
This commit is contained in:
@@ -12,14 +12,16 @@ export class CustomerCreateGuard implements CanActivateChild, CanActivate {
|
||||
return true;
|
||||
}
|
||||
|
||||
const processId = this.getProcessId(route);
|
||||
const canActivateCustomerType = await this.canActivateCustomerType(processId, 'store');
|
||||
let customerType = 'store';
|
||||
|
||||
if (canActivateCustomerType === true) {
|
||||
return true;
|
||||
const processId = this.getProcessId(route);
|
||||
const canActivateCustomerType = await this.canActivateCustomerType(processId, customerType);
|
||||
|
||||
if (canActivateCustomerType !== true) {
|
||||
customerType = canActivateCustomerType[0];
|
||||
}
|
||||
|
||||
await this.navigate(processId, canActivateCustomerType[0]);
|
||||
await this.navigate(processId, customerType);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user