stub out policies menu

This commit is contained in:
Kyle Spearrin 2020-01-15 15:42:30 -05:00
parent 1e100d1bf1
commit 4de7b52044
4 changed files with 10 additions and 1 deletions

2
jslib

@ -1 +1 @@
Subproject commit 5819023bc4986cdcff3004e3c75ee5ab8c9a1dfc
Subproject commit 6c8407196bf9e79468f8f6449b4377083ee6d36b

View File

@ -15,6 +15,10 @@
*ngIf="organization.isAdmin && accessGroups">
{{'groups' | i18n}}
</a>
<a routerLink="policies" class="list-group-item" routerLinkActive="active"
*ngIf="organization.isAdmin && accessPolicies">
{{'policies' | i18n}}
</a>
<a routerLink="events" class="list-group-item" routerLinkActive="active"
*ngIf="organization.isAdmin && accessEvents">
{{'eventLogs' | i18n}}

View File

@ -14,6 +14,7 @@ import { Organization } from 'jslib/models/domain/organization';
})
export class ManageComponent implements OnInit {
organization: Organization;
accessPolicies = false;
accessGroups = false;
accessEvents = false;
@ -22,6 +23,7 @@ export class ManageComponent implements OnInit {
ngOnInit() {
this.route.parent.params.subscribe(async (params) => {
this.organization = await this.userService.getOrganization(params.organizationId);
this.accessPolicies = this.organization.usePolicies;
this.accessEvents = this.organization.useEvents;
this.accessGroups = this.organization.useGroups;
});

View File

@ -2047,6 +2047,9 @@
"people": {
"message": "People"
},
"policies": {
"message": "Policies"
},
"groups": {
"message": "Groups"
},