1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 18:43:25 +00:00

[PM-13347] Web app impacts on the Remove Bitwarden Families policy (#12056)

* Changes for web impact by the policy

* Changes to address PR comments

* refactoring changes from pr comments

* Resolve the complex conditionals comment

* resolve the complex conditionals comment

* Resolve the pr comments on user layout

* revert on wanted change

* Refactor and move logic and template into its own component

* Move to a folder owned by the Billing team
This commit is contained in:
cyprain-okeke
2024-11-28 15:59:05 +01:00
committed by GitHub
parent 59686346d4
commit d76b5b672c
8 changed files with 231 additions and 17 deletions

View File

@@ -0,0 +1,5 @@
<bit-nav-item
[text]="'sponsoredFamilies' | i18n"
route="settings/sponsored-families"
*ngIf="showFreeFamilies$ | async"
></bit-nav-item>

View File

@@ -0,0 +1,22 @@
import { Component } from "@angular/core";
import { Observable } from "rxjs";
import { NavigationModule } from "@bitwarden/components";
import { FreeFamiliesPolicyService } from "../services/free-families-policy.service";
import { BillingSharedModule } from "./billing-shared.module";
@Component({
selector: "billing-free-families-nav-item",
templateUrl: "./billing-free-families-nav-item.component.html",
standalone: true,
imports: [NavigationModule, BillingSharedModule],
})
export class BillingFreeFamiliesNavItemComponent {
showFreeFamilies$: Observable<boolean>;
constructor(private freeFamiliesPolicyService: FreeFamiliesPolicyService) {
this.showFreeFamilies$ = this.freeFamiliesPolicyService.showFreeFamilies$;
}
}