mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[CL-553] Migrate CL to Control Flow syntax (#12390)
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
<ng-template ng-option-tmp let-item="item">
|
||||
<div class="tw-flex" [title]="item.label">
|
||||
<div class="tw-mr-2 tw-flex-initial">
|
||||
<i *ngIf="item.icon != null" class="bwi bwi-fw {{ item.icon }}" aria-hidden="true"></i>
|
||||
@if (item.icon != null) {
|
||||
<i class="bwi bwi-fw {{ item.icon }}" aria-hidden="true"></i>
|
||||
}
|
||||
</div>
|
||||
<div class="tw-flex-1 tw-text-ellipsis tw-overflow-hidden">
|
||||
{{ item.label }}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { NgIf } from "@angular/common";
|
||||
|
||||
import {
|
||||
Component,
|
||||
ContentChildren,
|
||||
@@ -36,7 +36,7 @@ let nextId = 0;
|
||||
templateUrl: "select.component.html",
|
||||
providers: [{ provide: BitFormFieldControl, useExisting: SelectComponent }],
|
||||
standalone: true,
|
||||
imports: [NgSelectModule, ReactiveFormsModule, FormsModule, NgIf],
|
||||
imports: [NgSelectModule, ReactiveFormsModule, FormsModule],
|
||||
})
|
||||
export class SelectComponent<T> implements BitFormFieldControl, ControlValueAccessor {
|
||||
@ViewChild(NgSelectComponent) select: NgSelectComponent;
|
||||
|
||||
Reference in New Issue
Block a user