mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
disable autofill options when the form is disabled (#16505)
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
<vault-autofill-uri-option
|
||||
*ngFor="let uri of uriControls; let i = index"
|
||||
cdkDrag
|
||||
[cdkDragDisabled]="uriControls.length <= 1"
|
||||
[cdkDragDisabled]="uriControls.length <= 1 || autofillOptionsForm.disabled"
|
||||
[formControlName]="i"
|
||||
(remove)="removeUri(i)"
|
||||
(onKeydown)="onUriItemKeydown($event, i)"
|
||||
[canReorder]="uriControls.length > 1"
|
||||
[canRemove]="uriControls.length > 1"
|
||||
[canReorder]="uriControls.length > 1 && autofillOptionsForm.enabled"
|
||||
[canRemove]="uriControls.length > 1 && autofillOptionsForm.enabled"
|
||||
[defaultMatchDetection]="defaultMatchDetection$ | async"
|
||||
[index]="i"
|
||||
></vault-autofill-uri-option>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
data-testid="remove-uri-button"
|
||||
></button>
|
||||
</bit-form-field>
|
||||
<div class="tw-flex tw-items-center tw-ml-1.5">
|
||||
<div class="tw-flex tw-items-center tw-ml-1.5" *ngIf="canReorder">
|
||||
<button
|
||||
type="button"
|
||||
bitIconButton="bwi-drag-and-drop"
|
||||
@@ -32,7 +32,6 @@
|
||||
[label]="'reorderToggleButton' | i18n: uriLabel"
|
||||
(keydown)="handleKeydown($event)"
|
||||
data-testid="reorder-toggle-button"
|
||||
*ngIf="canReorder"
|
||||
></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user