mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-11 13:30:39 +01:00
[SM-477] remove new org button from org-switcher (#4677)
* remove new org button from org-switcher * add comment
This commit is contained in:
parent
40e6471070
commit
e9a288ec2b
@ -2,7 +2,7 @@
|
||||
<bit-icon [icon]="logo" class="tw-w-full tw-text-alt2"></bit-icon>
|
||||
</a>
|
||||
|
||||
<org-switcher [filter]="orgFilter"></org-switcher>
|
||||
<org-switcher [filter]="orgFilter" [hideNewButton]="true"></org-switcher>
|
||||
<bit-nav-item icon="bwi-collection" [text]="'projects' | i18n" route="projects"></bit-nav-item>
|
||||
<bit-nav-item icon="bwi-key" [text]="'secrets' | i18n" route="secrets"></bit-nav-item>
|
||||
<bit-nav-item
|
||||
|
@ -28,6 +28,7 @@
|
||||
</bit-nav-item>
|
||||
</ng-container>
|
||||
<bit-nav-item
|
||||
*ngIf="!hideNewButton"
|
||||
icon="bwi-plus"
|
||||
[text]="'newOrganization' | i18n"
|
||||
route="/create-organization"
|
||||
|
@ -36,6 +36,13 @@ export class OrgSwitcherComponent {
|
||||
@Output()
|
||||
openChange = new EventEmitter<boolean>();
|
||||
|
||||
/**
|
||||
* Visibility of the New Organization button
|
||||
* (Temporary; will be removed when ability to create organizations is added to SM.)
|
||||
*/
|
||||
@Input()
|
||||
hideNewButton = false;
|
||||
|
||||
constructor(private route: ActivatedRoute, private organizationService: OrganizationService) {}
|
||||
|
||||
protected toggle(event?: MouseEvent) {
|
||||
|
Loading…
Reference in New Issue
Block a user