1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

-[PM-27123] Update Signals and Update Estimated Tax and Credit Logic (#17055)

* billing(fix): update signals and update estimated tax and credit logic

* fix(billing): update with claude feedback and expose total observable
This commit is contained in:
Stephon Brown
2025-10-28 11:25:07 -04:00
committed by GitHub
parent 714daa5779
commit bf66b5ac19
3 changed files with 48 additions and 49 deletions

View File

@@ -1,5 +1,6 @@
import { CurrencyPipe } from "@angular/common";
import { Component, computed, input, signal } from "@angular/core";
import { toObservable } from "@angular/core/rxjs-interop";
import { TypographyModule, IconButtonModule } from "@bitwarden/components";
import { I18nPipe } from "@bitwarden/ui-common";
@@ -71,6 +72,11 @@ export class CartSummaryComponent {
*/
readonly total = computed<number>(() => this.getTotalCost());
/**
* Observable of computed total value
*/
readonly total$ = toObservable(this.total);
/**
* Toggles the expanded/collapsed state of the cart items
*/