1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 03:33:54 +00:00

DIRT - Prefer signal & change detection (#16939)

This commit is contained in:
Oscar Hinton
2025-10-24 18:17:58 +02:00
committed by GitHub
parent 1da4fd2261
commit fc26a21b85
32 changed files with 144 additions and 0 deletions

View File

@@ -6,6 +6,8 @@ import { Component, Input } from "@angular/core";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { TypographyModule } from "@bitwarden/components";
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
@Component({
selector: "dirt-card",
templateUrl: "./card.component.html",
@@ -19,13 +21,19 @@ export class CardComponent {
/**
* The title of the card
*/
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
// eslint-disable-next-line @angular-eslint/prefer-signals
@Input() title: string;
/**
* The current value of the card as emphasized text
*/
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
// eslint-disable-next-line @angular-eslint/prefer-signals
@Input() value: number;
/**
* The maximum value of the card
*/
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
// eslint-disable-next-line @angular-eslint/prefer-signals
@Input() maxValue: number;
}