mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
[CL-553] Migrate CL to Control Flow syntax (#12390)
This commit is contained in:
@@ -31,7 +31,9 @@
|
||||
[disabled]="disabled"
|
||||
(click)="clear(item)"
|
||||
>
|
||||
<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>
|
||||
}
|
||||
<span class="tw-truncate">
|
||||
{{ item.labelName }}
|
||||
</span>
|
||||
@@ -41,10 +43,14 @@
|
||||
<ng-template ng-option-tmp let-item="item">
|
||||
<div class="tw-flex">
|
||||
<div class="tw-w-7 tw-flex-none">
|
||||
<i *ngIf="isSelected(item)" class="bwi bwi-fw bwi-check" aria-hidden="true"></i>
|
||||
@if (isSelected(item)) {
|
||||
<i class="bwi bwi-fw bwi-check" aria-hidden="true"></i>
|
||||
}
|
||||
</div>
|
||||
<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">
|
||||
{{ item.listName }}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// @ts-strict-ignore
|
||||
import { coerceBooleanProperty } from "@angular/cdk/coercion";
|
||||
import { hasModifierKey } from "@angular/cdk/keycodes";
|
||||
import { NgIf } from "@angular/common";
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
@@ -39,7 +38,7 @@ let nextId = 0;
|
||||
templateUrl: "./multi-select.component.html",
|
||||
providers: [{ provide: BitFormFieldControl, useExisting: MultiSelectComponent }],
|
||||
standalone: true,
|
||||
imports: [NgSelectModule, ReactiveFormsModule, FormsModule, BadgeModule, NgIf, I18nPipe],
|
||||
imports: [NgSelectModule, ReactiveFormsModule, FormsModule, BadgeModule, I18nPipe],
|
||||
})
|
||||
/**
|
||||
* This component has been implemented to only support Multi-select list events
|
||||
|
||||
Reference in New Issue
Block a user