Add i18 support
This commit is contained in:
@@ -40,9 +40,11 @@ export const useTenantStore = create<TenantState>()(
|
||||
setCurrentTenant: (tenant: TenantResponse) => {
|
||||
set({ currentTenant: tenant, currentTenantAccess: null });
|
||||
// Update API client with new tenant ID
|
||||
tenantService.setCurrentTenant(tenant);
|
||||
// Load tenant access info
|
||||
get().loadCurrentTenantAccess();
|
||||
if (tenant) {
|
||||
tenantService.setCurrentTenant(tenant);
|
||||
// Load tenant access info
|
||||
get().loadCurrentTenantAccess();
|
||||
}
|
||||
},
|
||||
|
||||
switchTenant: async (tenantId: string): Promise<boolean> => {
|
||||
|
||||
Reference in New Issue
Block a user