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:
Max Peintner
2020-07-07 11:50:42 +02:00
committed by GitHub
parent 18669b39c1
commit b8798230b0
57 changed files with 1299 additions and 363 deletions
@@ -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 -3
View File
@@ -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));