mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
stub out policies menu
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 5819023bc4...6c8407196b
@@ -15,6 +15,10 @@
|
|||||||
*ngIf="organization.isAdmin && accessGroups">
|
*ngIf="organization.isAdmin && accessGroups">
|
||||||
{{'groups' | i18n}}
|
{{'groups' | i18n}}
|
||||||
</a>
|
</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"
|
<a routerLink="events" class="list-group-item" routerLinkActive="active"
|
||||||
*ngIf="organization.isAdmin && accessEvents">
|
*ngIf="organization.isAdmin && accessEvents">
|
||||||
{{'eventLogs' | i18n}}
|
{{'eventLogs' | i18n}}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import { Organization } from 'jslib/models/domain/organization';
|
|||||||
})
|
})
|
||||||
export class ManageComponent implements OnInit {
|
export class ManageComponent implements OnInit {
|
||||||
organization: Organization;
|
organization: Organization;
|
||||||
|
accessPolicies = false;
|
||||||
accessGroups = false;
|
accessGroups = false;
|
||||||
accessEvents = false;
|
accessEvents = false;
|
||||||
|
|
||||||
@@ -22,6 +23,7 @@ export class ManageComponent implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.route.parent.params.subscribe(async (params) => {
|
this.route.parent.params.subscribe(async (params) => {
|
||||||
this.organization = await this.userService.getOrganization(params.organizationId);
|
this.organization = await this.userService.getOrganization(params.organizationId);
|
||||||
|
this.accessPolicies = this.organization.usePolicies;
|
||||||
this.accessEvents = this.organization.useEvents;
|
this.accessEvents = this.organization.useEvents;
|
||||||
this.accessGroups = this.organization.useGroups;
|
this.accessGroups = this.organization.useGroups;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2047,6 +2047,9 @@
|
|||||||
"people": {
|
"people": {
|
||||||
"message": "People"
|
"message": "People"
|
||||||
},
|
},
|
||||||
|
"policies": {
|
||||||
|
"message": "Policies"
|
||||||
|
},
|
||||||
"groups": {
|
"groups": {
|
||||||
"message": "Groups"
|
"message": "Groups"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user