Merge branch 'dmp-refactoring' into accessibility-refactor
This commit is contained in:
commit
f87d47e72e
|
@ -355,12 +355,13 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes
|
||||||
}
|
}
|
||||||
|
|
||||||
switchTenant(): void {
|
switchTenant(): void {
|
||||||
if (this.tenantFormGroup.valid === false) return;
|
|
||||||
|
|
||||||
const selectedTenant = this.tenantFormGroup.get('tenantCode').value;
|
const selectedTenant = this.tenantFormGroup.get('tenantCode').value;
|
||||||
|
|
||||||
|
if (!this.tenantFormGroup.valid || !selectedTenant) return;
|
||||||
|
|
||||||
this.authService.selectedTenant(selectedTenant.value);
|
|
||||||
window.location.href = this.tenantHandlingService.getCurrentUrlEnrichedWithTenantCode(selectedTenant.value, true);
|
this.authService.selectedTenant(selectedTenant);
|
||||||
|
window.location.href = this.tenantHandlingService.getCurrentUrlEnrichedWithTenantCode(selectedTenant, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Preferences
|
//Preferences
|
||||||
|
|
Loading…
Reference in New Issue