1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[AC-1418] Cleanup SM subscription UI flags

This commit is contained in:
Shane Melton
2023-06-27 16:44:32 -07:00
parent dc13c3aea0
commit 0d5d4b07cc

View File

@@ -117,11 +117,6 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
!this.subscription.cancelled &&
!this.subscriptionMarkedForCancel;
// Remove next line when the sm-ga-billing flag is deleted
this.showSecretsManagerSubscribe =
this.showSecretsManagerSubscribe &&
(await this.configService.getFeatureFlagBool(FeatureFlag.SecretsManagerBilling));
this.showAdjustSecretsManager =
this.userOrg.canEditSubscription &&
this.userOrg.useSecretsManager &&
@@ -130,11 +125,14 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
!this.subscription.cancelled &&
!this.subscriptionMarkedForCancel;
this.showAdjustSecretsManager =
this.showAdjustSecretsManager &&
(await this.configService.getFeatureFlagBool(FeatureFlag.SecretsManagerBilling));
this.loading = false;
// Remove the remaining lines when the sm-ga-billing flag is deleted
const smBillingEnabled = await this.configService.getFeatureFlagBool(
FeatureFlag.SecretsManagerBilling
);
this.showSecretsManagerSubscribe = this.showSecretsManagerSubscribe && smBillingEnabled;
this.showAdjustSecretsManager = this.showAdjustSecretsManager && smBillingEnabled;
}
get subscription() {