mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
Update organization tabs from 4 to 6
This commit is contained in:
parent
bb4ccadbe0
commit
f878fb0cb6
@ -6,34 +6,27 @@
|
|||||||
class="my-auto pl-1"
|
class="my-auto pl-1"
|
||||||
[activeOrganization]="organization"
|
[activeOrganization]="organization"
|
||||||
></app-organization-switcher>
|
></app-organization-switcher>
|
||||||
<ul class="nav nav-tabs">
|
<bit-tab-group class="tw-mb-[-1px]">
|
||||||
<li class="nav-item">
|
<bit-tab-item [route]="['vault']">{{ "vault" | i18n }}</bit-tab-item>
|
||||||
<a class="nav-link" routerLink="vault" routerLinkActive="active">
|
<bit-tab-item *ngIf="showMembersTab" [route]="['members']">{{
|
||||||
<i class="bwi bwi-lock" aria-hidden="true"></i>
|
"members" | i18n
|
||||||
{{ "vault" | i18n }}
|
}}</bit-tab-item>
|
||||||
</a>
|
<bit-tab-item *ngIf="showGroupsTab" [route]="['groups']">{{
|
||||||
</li>
|
"groups" | i18n
|
||||||
<li class="nav-item" *ngIf="showManageTab">
|
}}</bit-tab-item>
|
||||||
<a class="nav-link" [routerLink]="manageRoute" routerLinkActive="active">
|
<bit-tab-item *ngIf="showReportsTab" [route]="['reports']">{{
|
||||||
<i class="bwi bwi-sliders" aria-hidden="true"></i>
|
"reports" | i18n
|
||||||
{{ "manage" | i18n }}
|
}}</bit-tab-item>
|
||||||
</a>
|
<bit-tab-item *ngIf="showBillingTab" [route]="['billing']">{{
|
||||||
</li>
|
"billing" | i18n
|
||||||
<li class="nav-item" *ngIf="showToolsTab">
|
}}</bit-tab-item>
|
||||||
<a class="nav-link" [routerLink]="toolsRoute" routerLinkActive="active">
|
<bit-tab-item *ngIf="showSettingsTab" [route]="['settings']">{{
|
||||||
<i class="bwi bwi-wrench" aria-hidden="true"></i>
|
"settings" | i18n
|
||||||
{{ "tools" | i18n }}
|
}}</bit-tab-item>
|
||||||
</a>
|
</bit-tab-group>
|
||||||
</li>
|
|
||||||
<li class="nav-item" *ngIf="showSettingsTab">
|
|
||||||
<a class="nav-link" routerLink="settings" routerLinkActive="active">
|
|
||||||
<i class="bwi bwi-cogs" aria-hidden="true"></i>
|
|
||||||
{{ "settings" | i18n }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
<app-footer></app-footer>
|
<app-footer></app-footer>
|
||||||
|
@ -62,6 +62,22 @@ export class OrganizationLayoutComponent implements OnInit, OnDestroy {
|
|||||||
return NavigationPermissionsService.canAccessSettings(this.organization);
|
return NavigationPermissionsService.canAccessSettings(this.organization);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get showMembersTab(): boolean {
|
||||||
|
return this.organization.canManageUsers;
|
||||||
|
}
|
||||||
|
|
||||||
|
get showGroupsTab(): boolean {
|
||||||
|
return this.organization.canManageGroups;
|
||||||
|
}
|
||||||
|
|
||||||
|
get showReportsTab(): boolean {
|
||||||
|
return this.organization.canAccessReports;
|
||||||
|
}
|
||||||
|
|
||||||
|
get showBillingTab(): boolean {
|
||||||
|
return this.organization.canManageBilling;
|
||||||
|
}
|
||||||
|
|
||||||
get toolsRoute(): string {
|
get toolsRoute(): string {
|
||||||
return this.organization.canAccessImportExport
|
return this.organization.canAccessImportExport
|
||||||
? "tools/import"
|
? "tools/import"
|
||||||
|
@ -5210,5 +5210,8 @@
|
|||||||
},
|
},
|
||||||
"on": {
|
"on": {
|
||||||
"message": "On"
|
"message": "On"
|
||||||
|
},
|
||||||
|
"members": {
|
||||||
|
"message": "Members"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user