Browse Source

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

* remove new org button from org-switcher

* add comment
pull/4682/head
Will Martin 3 years ago committed by GitHub
parent
commit
e9a288ec2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      bitwarden_license/bit-web/src/app/secrets-manager/layout/navigation.component.html
  2. 1
      bitwarden_license/bit-web/src/app/secrets-manager/layout/org-switcher.component.html
  3. 7
      bitwarden_license/bit-web/src/app/secrets-manager/layout/org-switcher.component.ts

2
bitwarden_license/bit-web/src/app/secrets-manager/layout/navigation.component.html

@ -2,7 +2,7 @@ @@ -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

1
bitwarden_license/bit-web/src/app/secrets-manager/layout/org-switcher.component.html

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

7
bitwarden_license/bit-web/src/app/secrets-manager/layout/org-switcher.component.ts

@ -36,6 +36,13 @@ export class OrgSwitcherComponent { @@ -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…
Cancel
Save