mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-28 23:18:54 +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 <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
00f7dbe875
commit
08ae39ae19
@@ -0,0 +1,34 @@
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
import { Role } from 'src/app/proto/generated/zitadel/project_pb';
|
||||
|
||||
@Component({
|
||||
selector: 'cnsl-user-grant-role-dialog',
|
||||
templateUrl: './user-grant-role-dialog.component.html',
|
||||
styleUrls: ['./user-grant-role-dialog.component.scss'],
|
||||
})
|
||||
export class UserGrantRoleDialogComponent {
|
||||
public projectId: string = '';
|
||||
public grantId: string = '';
|
||||
public selectedRoleKeysList: string[] = [];
|
||||
|
||||
public selectedRoles: Role.AsObject[] = [];
|
||||
|
||||
constructor(public dialogRef: MatDialogRef<UserGrantRoleDialogComponent>, @Inject(MAT_DIALOG_DATA) public data: any) {
|
||||
this.projectId = data.projectId;
|
||||
this.grantId = data.grantId;
|
||||
this.selectedRoleKeysList = data.selectedRoleKeysList;
|
||||
}
|
||||
|
||||
public selectRoles(selected: any): void {
|
||||
this.selectedRoles = selected;
|
||||
}
|
||||
|
||||
public closeDialog(): void {
|
||||
this.dialogRef.close(false);
|
||||
}
|
||||
|
||||
public closeDialogWithSuccess(): void {
|
||||
this.dialogRef.close({ roles: this.selectedRoles.map((r) => r.key) });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user