mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-09 15:45:12 +00:00
feat(console): split granted from owned project modules, general ui ux fixes (#286)
* add iam label, user avatar * avatar component * split granted and owned modules * move components to resp module * refactor project contributors, g project nav * rem console logs, add avatar for org members * fix changes loading, auth user page * refactor home, i18n * fix changes side overflow * lint
This commit is contained in:
@@ -10,8 +10,6 @@ export class AuthInterceptorService implements HttpInterceptor {
|
||||
constructor() { }
|
||||
|
||||
public intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
|
||||
console.log(req.url);
|
||||
|
||||
return next.handle(req);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +121,6 @@ export class AuthUserService {
|
||||
if (preferredLanguage) {
|
||||
req.setPreferredLanguage(preferredLanguage);
|
||||
}
|
||||
console.log(req.toObject());
|
||||
return await this.request(
|
||||
c => c.updateMyUserProfile,
|
||||
req,
|
||||
@@ -145,9 +144,9 @@ export class AuthUserService {
|
||||
);
|
||||
}
|
||||
|
||||
public async SaveMyUserEmail(email: UserEmail.AsObject): Promise<UserEmail> {
|
||||
public async SaveMyUserEmail(email: string): Promise<UserEmail> {
|
||||
const req = new UpdateUserEmailRequest();
|
||||
req.setEmail(email.email);
|
||||
req.setEmail(email);
|
||||
return await this.request(
|
||||
c => c.changeMyUserEmail,
|
||||
req,
|
||||
@@ -185,9 +184,9 @@ export class AuthUserService {
|
||||
);
|
||||
}
|
||||
|
||||
public async SaveMyUserPhone(phone: UserPhone.AsObject): Promise<UserPhone> {
|
||||
public async SaveMyUserPhone(phone: string): Promise<UserPhone> {
|
||||
const req = new UpdateUserPhoneRequest();
|
||||
req.setPhone(phone.phone);
|
||||
req.setPhone(phone);
|
||||
return await this.request(
|
||||
c => c.changeMyUserPhone,
|
||||
req,
|
||||
@@ -297,7 +296,6 @@ export class AuthUserService {
|
||||
userRoles = ['user.resourceowner'];
|
||||
}
|
||||
this._roleCache = userRoles;
|
||||
console.log(roles);
|
||||
return of(this.hasRoles(userRoles, roles, each));
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -65,8 +65,6 @@ export class AuthService {
|
||||
this.config.issuer = config?.issuer || this.grpcService.issuer;
|
||||
this.config.clientId = config?.clientId || this.grpcService.clientid;
|
||||
this.config.customQueryParams = config?.customQueryParams;
|
||||
console.log(this.config);
|
||||
|
||||
this.oauthService.configure(this.config);
|
||||
// this.oauthService.setupAutomaticSilentRefresh();
|
||||
this.oauthService.strictDiscoveryDocumentValidation = false;
|
||||
|
||||
@@ -31,7 +31,6 @@ export class GrpcService {
|
||||
|
||||
this.issuer = data.issuer;
|
||||
if (data.clientid) {
|
||||
console.log(data.clientid);
|
||||
this.clientid = data.clientid;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user