mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-07 21:10:55 +08:00
* Make TwoFactorIconComponent standalone * Angular updates to TwoFactorIconComponent - Migrate TwoFactorProviderType from enum to const (ADR25) - Migrate Inputs to Signals - Make provider a required input - Use new Control Flow syntax - Use OnPush change detection - Memoize function for legacy providers (providers with png image) - Add documentation - Remove @ts-strict-ignore - Fix type in TwoFactorSetupDuoComponent as it would default to number because of the migration of TwoFactorProviderType (enum to const). Now it can be overridden with any value of TwoFactorProviderType * Add type guard for TwoFactorProviderType and fix CLI * PM-32915 - Update TwoFactorProviderType to mark U2f as deprecated in favor of WebAuthn * PM-32915 - TwoFactorIconComp - refactor to eliminate legacy providers and just use new, already available duo and yubikey SVG icons. * PM-32915 - Add TODOs for cleaning up mfaType usages. * PM-32915 - Remove unncessary ng-container --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com> Co-authored-by: Jared Snider <jsnider@bitwarden.com> Co-authored-by: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com>
6 lines
173 B
HTML
6 lines
173 B
HTML
@if (IconProviderMap[provider()]) {
|
|
<div class="tw-size-[70px] tw-content-center">
|
|
<bit-svg [content]="IconProviderMap[provider()]" [ariaLabel]="name()" />
|
|
</div>
|
|
}
|