mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
disable autofill options when the form is disabled (#16505)
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user