Hide the selfHost for teams and free plan (#10692)
This commit is contained in:
parent
6bc74546e4
commit
c0fbb5ce39
|
@ -222,8 +222,10 @@
|
|||
</ng-container>
|
||||
</ng-container>
|
||||
|
||||
<h2 bitTypography="h2" class="tw-mt-7">{{ "selfHostingTitle" | i18n }}</h2>
|
||||
<p bitTypography="body1">
|
||||
<h2 bitTypography="h2" *ngIf="shownSelfHost()" class="tw-mt-7">
|
||||
{{ "selfHostingTitle" | i18n }}
|
||||
</h2>
|
||||
<p bitTypography="body1" *ngIf="shownSelfHost()">
|
||||
{{ "selfHostingEnterpriseOrganizationSectionCopy" | i18n }}
|
||||
<a
|
||||
href="https://bitwarden.com/help/licensing-on-premise/#retrieve-organization-license"
|
||||
|
@ -240,7 +242,7 @@
|
|||
buttonType="secondary"
|
||||
type="button"
|
||||
(click)="downloadLicense()"
|
||||
*ngIf="canDownloadLicense"
|
||||
*ngIf="canDownloadLicense && shownSelfHost()"
|
||||
[disabled]="showDownloadLicense"
|
||||
>
|
||||
{{ "downloadLicense" | i18n }}
|
||||
|
|
|
@ -345,6 +345,13 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||
);
|
||||
}
|
||||
|
||||
shownSelfHost(): boolean {
|
||||
return (
|
||||
this.sub?.plan.productTier !== ProductTierType.Teams &&
|
||||
this.sub?.plan.productTier !== ProductTierType.Free
|
||||
);
|
||||
}
|
||||
|
||||
cancelSubscription = async () => {
|
||||
const reference = openOffboardingSurvey(this.dialogService, {
|
||||
data: {
|
||||
|
|
Loading…
Reference in New Issue