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:
@@ -0,0 +1,5 @@
|
||||
<bit-nav-item
|
||||
[text]="'sponsoredFamilies' | i18n"
|
||||
route="settings/sponsored-families"
|
||||
*ngIf="showFreeFamilies$ | async"
|
||||
></bit-nav-item>
|
||||
@@ -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$;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user