[SM-477] remove new org button from org-switcher (#4677)

* remove new org button from org-switcher

* add comment
This commit is contained in:
Will Martin 2023-02-07 10:23:25 -05:00 committed by GitHub
parent 40e6471070
commit e9a288ec2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -28,6 +28,7 @@
</bit-nav-item>
</ng-container>
<bit-nav-item
*ngIf="!hideNewButton"
icon="bwi-plus"
[text]="'newOrganization' | i18n"
route="/create-organization"

View File

@ -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) {