1
0
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:
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
*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>

View File

@@ -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>