1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

disable autofill options when the form is disabled (#16505)

This commit is contained in:
Nick Krantz
2025-09-22 11:38:28 -05:00
committed by GitHub
parent b481063810
commit 2de21e607c
2 changed files with 4 additions and 5 deletions

View File

@@ -10,12 +10,12 @@
<vault-autofill-uri-option <vault-autofill-uri-option
*ngFor="let uri of uriControls; let i = index" *ngFor="let uri of uriControls; let i = index"
cdkDrag cdkDrag
[cdkDragDisabled]="uriControls.length <= 1" [cdkDragDisabled]="uriControls.length <= 1 || autofillOptionsForm.disabled"
[formControlName]="i" [formControlName]="i"
(remove)="removeUri(i)" (remove)="removeUri(i)"
(onKeydown)="onUriItemKeydown($event, i)" (onKeydown)="onUriItemKeydown($event, i)"
[canReorder]="uriControls.length > 1" [canReorder]="uriControls.length > 1 && autofillOptionsForm.enabled"
[canRemove]="uriControls.length > 1" [canRemove]="uriControls.length > 1 && autofillOptionsForm.enabled"
[defaultMatchDetection]="defaultMatchDetection$ | async" [defaultMatchDetection]="defaultMatchDetection$ | async"
[index]="i" [index]="i"
></vault-autofill-uri-option> ></vault-autofill-uri-option>

View File

@@ -23,7 +23,7 @@
data-testid="remove-uri-button" data-testid="remove-uri-button"
></button> ></button>
</bit-form-field> </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 <button
type="button" type="button"
bitIconButton="bwi-drag-and-drop" bitIconButton="bwi-drag-and-drop"
@@ -32,7 +32,6 @@
[label]="'reorderToggleButton' | i18n: uriLabel" [label]="'reorderToggleButton' | i18n: uriLabel"
(keydown)="handleKeydown($event)" (keydown)="handleKeydown($event)"
data-testid="reorder-toggle-button" data-testid="reorder-toggle-button"
*ngIf="canReorder"
></button> ></button>
</div> </div>
</div> </div>