mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[AC-1418] Cleanup SM subscription UI flags
This commit is contained in:
@@ -117,11 +117,6 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||||||
!this.subscription.cancelled &&
|
!this.subscription.cancelled &&
|
||||||
!this.subscriptionMarkedForCancel;
|
!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.showAdjustSecretsManager =
|
||||||
this.userOrg.canEditSubscription &&
|
this.userOrg.canEditSubscription &&
|
||||||
this.userOrg.useSecretsManager &&
|
this.userOrg.useSecretsManager &&
|
||||||
@@ -130,11 +125,14 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||||||
!this.subscription.cancelled &&
|
!this.subscription.cancelled &&
|
||||||
!this.subscriptionMarkedForCancel;
|
!this.subscriptionMarkedForCancel;
|
||||||
|
|
||||||
this.showAdjustSecretsManager =
|
|
||||||
this.showAdjustSecretsManager &&
|
|
||||||
(await this.configService.getFeatureFlagBool(FeatureFlag.SecretsManagerBilling));
|
|
||||||
|
|
||||||
this.loading = false;
|
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() {
|
get subscription() {
|
||||||
|
|||||||
Reference in New Issue
Block a user