Role name:
-
+
Description:
-
+
-
Creation date: {{role.created_at}}
-
Last update Date: {{role.updated_at}}
-
UUID: {{role.role_id}}
+
Creation date: {{($role | async)?.created_at}}
+
Last update Date: {{($role | async )?.updated_at}}
+
UUID: {{($role | async)?.role_id}}
- Is build in
+ Is build in
-
+
diff --git a/src/app/components/role-management/role-detail/role-detail.component.scss b/src/app/components/role-management/role-detail/role-detail.component.scss
index bf38d2124..107e136a9 100644
--- a/src/app/components/role-management/role-detail/role-detail.component.scss
+++ b/src/app/components/role-management/role-detail/role-detail.component.scss
@@ -10,11 +10,16 @@
justify-content: center;
}
-.permissions {
- width: 35vw;
+
+.clickable {
+ cursor: pointer;
+}
+
+.privilege {
display: flex;
- flex-direction: column;
- justify-content: stretch;
+ flex-direction: row;
+ padding-left: 10px;
+ justify-content: space-between;
}
.permission {
@@ -33,6 +38,7 @@
flex-direction: row;
justify-content: space-between;
padding-bottom: 20px;
+ padding-left: 10px;
}
.header > div {
diff --git a/src/app/components/role-management/role-detail/role-detail.component.ts b/src/app/components/role-management/role-detail/role-detail.component.ts
index 6fe154695..2c6af1195 100644
--- a/src/app/components/role-management/role-detail/role-detail.component.ts
+++ b/src/app/components/role-management/role-detail/role-detail.component.ts
@@ -14,11 +14,15 @@ import {Component, OnInit} from '@angular/core';
import {RoleService} from "@services/role.service";
import {ActivatedRoute} from "@angular/router";
import {Controller} from "@models/controller";
-import {ControllerService} from "@services/controller.service";
import {Role} from "@models/api/role";
import {UntypedFormControl, UntypedFormGroup} from "@angular/forms";
import {ToasterService} from "@services/toaster.service";
import {HttpErrorResponse} from "@angular/common/http";
+import {Privilege} from "@models/api/Privilege";
+import {PrivilegeService} from "@services/privilege.service";
+import {Observable, ReplaySubject} from "rxjs";
+import {IPrivilegesChange} from "@components/role-management/role-detail/privilege/IPrivilegesChange";
+import {map} from "rxjs/operators";
@Component({
selector: 'app-role-detail',
@@ -27,13 +31,20 @@ import {HttpErrorResponse} from "@angular/common/http";
})
export class RoleDetailComponent implements OnInit {
controller: Controller;
- role: Role;
+ $role: ReplaySubject