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>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<h2 bitTypography="h2" class="tw-mt-7">{{ "selfHostingTitle" | i18n }}</h2>
|
<h2 bitTypography="h2" *ngIf="shownSelfHost()" class="tw-mt-7">
|
||||||
<p bitTypography="body1">
|
{{ "selfHostingTitle" | i18n }}
|
||||||
|
</h2>
|
||||||
|
<p bitTypography="body1" *ngIf="shownSelfHost()">
|
||||||
{{ "selfHostingEnterpriseOrganizationSectionCopy" | i18n }}
|
{{ "selfHostingEnterpriseOrganizationSectionCopy" | i18n }}
|
||||||
<a
|
<a
|
||||||
href="https://bitwarden.com/help/licensing-on-premise/#retrieve-organization-license"
|
href="https://bitwarden.com/help/licensing-on-premise/#retrieve-organization-license"
|
||||||
|
@ -240,7 +242,7 @@
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
type="button"
|
type="button"
|
||||||
(click)="downloadLicense()"
|
(click)="downloadLicense()"
|
||||||
*ngIf="canDownloadLicense"
|
*ngIf="canDownloadLicense && shownSelfHost()"
|
||||||
[disabled]="showDownloadLicense"
|
[disabled]="showDownloadLicense"
|
||||||
>
|
>
|
||||||
{{ "downloadLicense" | i18n }}
|
{{ "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 () => {
|
cancelSubscription = async () => {
|
||||||
const reference = openOffboardingSurvey(this.dialogService, {
|
const reference = openOffboardingSurvey(this.dialogService, {
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in New Issue