mirror of
https://github.com/bitwarden/browser
synced 2026-02-05 11:13:44 +00:00
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
// FIXME: Update this file to be type safe and remove this and next line
|
|
// @ts-strict-ignore
|
|
import { Component, Input } from "@angular/core";
|
|
|
|
// 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: "app-onboarding-task",
|
|
templateUrl: "./onboarding-task.component.html",
|
|
host: {
|
|
class: "tw-max-w-max",
|
|
},
|
|
standalone: false,
|
|
})
|
|
export class OnboardingTaskComponent {
|
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
|
@Input()
|
|
completed = false;
|
|
|
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
|
@Input()
|
|
icon = "bwi-info-circle";
|
|
|
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
|
@Input()
|
|
title: string;
|
|
|
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
|
@Input()
|
|
route: string | any[];
|
|
|
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
|
@Input()
|
|
isDisabled: boolean = false;
|
|
|
|
handleClick(ev: MouseEvent) {
|
|
/**
|
|
* If the main `ng-content` is clicked, we don't want to trigger the task's click handler.
|
|
*/
|
|
ev.stopPropagation();
|
|
}
|
|
}
|