mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 22:13:32 +00:00
fix compile errors
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
[ngClass]="{ 'tw-max-w-md tw-mx-auto': titleAreaMaxWidth() === 'md' }"
|
||||
>
|
||||
<div *ngIf="!hideIcon()" class="tw-mx-auto tw-max-w-24 sm:tw-max-w-28 md:tw-max-w-32">
|
||||
<bit-icon [icon]="icon"></bit-icon>
|
||||
<bit-icon [icon]="icon()"></bit-icon>
|
||||
</div>
|
||||
|
||||
<ng-container *ngIf="title()">
|
||||
|
||||
@@ -85,8 +85,8 @@
|
||||
<div
|
||||
class="tw-gap-1 tw-flex tw-min-h-[1.85rem] tw-border-0 tw-border-solid"
|
||||
[ngClass]="{
|
||||
'tw-border-secondary-300/50 tw-border-b tw-pb-[2px]': !disableReadOnlyBorder(),
|
||||
'tw-border-transparent tw-pb-[3px]': disableReadOnlyBorder(),
|
||||
'tw-border-secondary-300/50 tw-border-b tw-pb-[2px]': !disableReadOnlyBorder,
|
||||
'tw-border-transparent tw-pb-[3px]': disableReadOnlyBorder,
|
||||
}"
|
||||
>
|
||||
<div
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
ViewChild,
|
||||
signal,
|
||||
input,
|
||||
model,
|
||||
Input,
|
||||
} from "@angular/core";
|
||||
|
||||
import { I18nPipe } from "@bitwarden/ui-common";
|
||||
@@ -42,7 +42,10 @@ export class BitFormFieldComponent implements AfterContentChecked {
|
||||
readonly disableMargin = input(false, { transform: booleanAttribute });
|
||||
|
||||
/** If `true`, remove the bottom border for `readonly` inputs */
|
||||
disableReadOnlyBorder = model(false);
|
||||
// TODO: Skipped for signal migration because:
|
||||
// Your application code writes to the input. This prevents migration.
|
||||
@Input({ transform: booleanAttribute })
|
||||
disableReadOnlyBorder = false;
|
||||
|
||||
protected prefixHasChildren = signal(false);
|
||||
protected suffixHasChildren = signal(false);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<i
|
||||
class="bwi bwi-spinner bwi-spin"
|
||||
aria-hidden="true"
|
||||
[ngClass]="{ 'bwi-lg': size === 'default' }"
|
||||
[ngClass]="{ 'bwi-lg': size() === 'default' }"
|
||||
></i>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<ng-select
|
||||
[items]="baseItems"
|
||||
[items]="baseItems()"
|
||||
[(ngModel)]="selectedItems"
|
||||
(ngModelChange)="onChange($event)"
|
||||
(blur)="onBlur()"
|
||||
bindLabel="listName"
|
||||
groupBy="parentGrouping"
|
||||
[placeholder]="placeholder"
|
||||
[placeholder]="placeholder()"
|
||||
[loading]="loading()"
|
||||
[loadingText]="loadingText"
|
||||
notFoundText="{{ 'multiSelectNotFound' | i18n }}"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
[relativeTo]="relativeTo()"
|
||||
[routerLinkActiveOptions]="routerLinkActiveOptions()"
|
||||
[variant]="variant()"
|
||||
[treeDepth]="treeDepth"
|
||||
[treeDepth]="treeDepth()"
|
||||
(mainContentClicked)="handleMainContentClicked()"
|
||||
[ariaLabel]="ariaLabel()"
|
||||
[hideActiveStyles]="parentHideActiveStyles"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div
|
||||
[ngStyle]="{
|
||||
'padding-left': data.open
|
||||
? (variant() === 'tree' ? 2.5 : 1) + treeDepth * 1.5 + 'rem'
|
||||
? (variant() === 'tree' ? 2.5 : 1) + treeDepth() * 1.5 + 'rem'
|
||||
: '0',
|
||||
}"
|
||||
class="tw-relative tw-flex"
|
||||
|
||||
@@ -19,7 +19,7 @@ export class ReadOnlyCipherCardComponent implements AfterViewInit {
|
||||
// Delay model update until next change detection cycle
|
||||
setTimeout(() => {
|
||||
if (this.formFields) {
|
||||
this.formFields.last.disableReadOnlyBorder.set(true);
|
||||
this.formFields.last.disableReadOnlyBorder = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user