mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-05 10:02:12 +00:00
fix(console): orgs list is shown empty when org is removed (#7781)
fix:active orgs not shown when org is removed Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
@@ -90,6 +90,8 @@ import {
|
||||
GetDefaultLanguageResponse,
|
||||
GetDefaultLoginTextsRequest,
|
||||
GetDefaultLoginTextsResponse,
|
||||
GetDefaultOrgRequest,
|
||||
GetDefaultOrgResponse,
|
||||
GetDefaultPasswordChangeMessageTextRequest,
|
||||
GetDefaultPasswordChangeMessageTextResponse,
|
||||
GetDefaultPasswordlessRegistrationMessageTextRequest,
|
||||
@@ -429,6 +431,11 @@ export class AdminService {
|
||||
this.storageService.getItem('onboarding-dismissed', StorageLocation.local) === 'true' ? true : false;
|
||||
}
|
||||
|
||||
public getDefaultOrg(): Promise<GetDefaultOrgResponse.AsObject> {
|
||||
const req = new GetDefaultOrgRequest();
|
||||
return this.grpcService.admin.getDefaultOrg(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public setDefaultOrg(orgId: string): Promise<SetDefaultOrgResponse.AsObject> {
|
||||
const req = new SetDefaultOrgRequest();
|
||||
req.setOrgId(orgId);
|
||||
|
||||
@@ -353,6 +353,7 @@ import {
|
||||
RemoveOrgMetadataRequest,
|
||||
RemoveOrgMetadataResponse,
|
||||
RemoveOrgRequest,
|
||||
RemoveOrgResponse,
|
||||
RemovePersonalAccessTokenRequest,
|
||||
RemovePersonalAccessTokenResponse,
|
||||
RemoveProjectGrantMemberRequest,
|
||||
@@ -1749,7 +1750,7 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.removeUser(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public removeOrg(): Promise<RemoveUserResponse.AsObject> {
|
||||
public removeOrg(): Promise<RemoveOrgResponse.AsObject> {
|
||||
const req = new RemoveOrgRequest();
|
||||
return this.grpcService.mgmt.removeOrg(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user