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
@@ -37,6 +37,7 @@ export class UserGrantsComponent implements OnInit, AfterViewInit {
public roleOptions: ProjectRoleView.AsObject[] = [];
public routerLink: any = [''];
public loadedProjectId: string = '';
constructor(
private userService: MgmtUserService,
private projectService: ProjectService,
@@ -121,16 +122,14 @@ export class UserGrantsComponent implements OnInit, AfterViewInit {
public getRoleOptions(projectId: string): void {
this.projectService.SearchProjectRoles(projectId, 100, 0).then(resp => {
this.loadedProjectId = projectId;
this.roleOptions = resp.toObject().resultList;
console.log(this.roleOptions);
});
}
updateRoles(grant: UserGrant.AsObject, selectionChange: MatSelectChange): void {
console.log(grant, selectionChange.value);
this.userService.UpdateUserGrant(grant.id, grant.userId, selectionChange.value)
.then((newmember: UserGrant) => {
console.log(newmember.toObject());
this.toast.showInfo('Grant updated!');
}).catch(error => {
this.toast.showError(error.message);