mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-07 23:12:02 +00:00
feat: rehauled console (#3525)
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * lock Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -167,7 +167,7 @@ export class GrpcAuthService {
|
||||
} else {
|
||||
let orgs = this.cachedOrgs;
|
||||
if (orgs.length === 0) {
|
||||
orgs = (await this.listMyProjectOrgs(10, 0)).resultList;
|
||||
orgs = (await this.listMyProjectOrgs()).resultList;
|
||||
this.cachedOrgs = orgs;
|
||||
}
|
||||
|
||||
@@ -310,22 +310,24 @@ export class GrpcAuthService {
|
||||
}
|
||||
|
||||
public listMyProjectOrgs(
|
||||
limit: number,
|
||||
offset: number,
|
||||
limit?: number,
|
||||
offset?: number,
|
||||
queryList?: OrgQuery[],
|
||||
): Promise<ListMyProjectOrgsResponse.AsObject> {
|
||||
const req = new ListMyProjectOrgsRequest();
|
||||
const metadata = new ListQuery();
|
||||
const query = new ListQuery();
|
||||
if (offset) {
|
||||
metadata.setOffset(offset);
|
||||
query.setOffset(offset);
|
||||
}
|
||||
if (limit) {
|
||||
metadata.setLimit(limit);
|
||||
query.setLimit(limit);
|
||||
}
|
||||
if (queryList) {
|
||||
req.setQueriesList(queryList);
|
||||
}
|
||||
|
||||
req.setQuery(query);
|
||||
|
||||
return this.grpcService.auth.listMyProjectOrgs(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user