mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-22 21:08:47 +00:00
fix(console): ui/ux improvements, delete user phone, pinned cards, user grant role load fix (#357)
* project grant member edit * project grant member dialog, import cleanup * readd project roles * user login-methods cleanup * fix sw config, user grant context * delete user grants, context for creation, search * contributor box shadow * password to detail view * user detail notification * ui ux improvements * pinned section * project pinnable grid, rem columns, move buttons * user detail mfa, move user comonents, user grant * del phone * user detail service * delete phone for auth, mgmt user
This commit is contained in:
@@ -156,6 +156,14 @@ export class AuthUserService {
|
||||
);
|
||||
}
|
||||
|
||||
public async RemoveMyUserPhone(): Promise<Empty> {
|
||||
return await this.request(
|
||||
c => c.removeMyUserPhone,
|
||||
new Empty(),
|
||||
f => f,
|
||||
);
|
||||
}
|
||||
|
||||
private async getMyzitadelPermissions(): Promise<any> {
|
||||
return await this.request(
|
||||
c => c.getMyZitadelPermissions,
|
||||
|
||||
@@ -197,6 +197,16 @@ export class MgmtUserService {
|
||||
);
|
||||
}
|
||||
|
||||
public async RemoveUserPhone(id: string): Promise<Empty> {
|
||||
const req = new UserID();
|
||||
req.setId(id);
|
||||
return await this.request(
|
||||
c => c.removeUserPhone,
|
||||
req,
|
||||
f => f,
|
||||
);
|
||||
}
|
||||
|
||||
public async DeactivateUser(id: string): Promise<UserPhone> {
|
||||
const req = new UserID();
|
||||
req.setId(id);
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { OAuthStorage } from 'angular-oauth2-oidc';
|
||||
|
||||
import { GrpcService } from './grpc.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
@@ -11,7 +9,7 @@ import { GrpcService } from './grpc.service';
|
||||
export class StorageService implements OAuthStorage {
|
||||
private storage: Storage = window.sessionStorage;
|
||||
|
||||
constructor(private grpcService: GrpcService) { }
|
||||
constructor() { }
|
||||
|
||||
public setItem<TValue = string>(key: string, value: TValue): void {
|
||||
this.storage.setItem(this.getPrefixedKey(key), JSON.stringify(value));
|
||||
|
||||
Reference in New Issue
Block a user