mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
51 lines
1.7 KiB
HTML
51 lines
1.7 KiB
HTML
<ng-container [formGroup]="uriForm">
|
|
<div class="tw-mb-4 tw-pt-1">
|
|
<div class="tw-flex tw-pt-2" [class.!tw-mb-1]="showMatchDetection">
|
|
<bit-form-field disableMargin class="tw-flex-1 !tw-pt-0">
|
|
<bit-label>{{ uriLabel }}</bit-label>
|
|
<input bitInput formControlName="uri" #uriInput />
|
|
<button
|
|
type="button"
|
|
bitIconButton="bwi-cog"
|
|
bitSuffix
|
|
[appA11yTitle]="toggleTitle"
|
|
(click)="toggleMatchDetection()"
|
|
data-testid="toggle-match-detection-button"
|
|
></button>
|
|
<button
|
|
type="button"
|
|
bitIconButton="bwi-minus-circle"
|
|
buttonType="danger"
|
|
bitSuffix
|
|
[appA11yTitle]="'deleteWebsite' | i18n"
|
|
*ngIf="canRemove"
|
|
(click)="removeUri()"
|
|
data-testid="remove-uri-button"
|
|
></button>
|
|
</bit-form-field>
|
|
<div class="tw-flex tw-items-center tw-ml-1.5">
|
|
<button
|
|
type="button"
|
|
bitIconButton="bwi-hamburger"
|
|
class="!tw-py-0 !tw-px-1"
|
|
cdkDragHandle
|
|
[appA11yTitle]="'reorderToggleButton' | i18n: uriLabel"
|
|
(keydown)="handleKeydown($event)"
|
|
data-testid="reorder-toggle-button"
|
|
*ngIf="canReorder"
|
|
></button>
|
|
</div>
|
|
</div>
|
|
<bit-form-field *ngIf="showMatchDetection" class="!tw-mb-5">
|
|
<bit-label>{{ "matchDetection" | i18n }}</bit-label>
|
|
<bit-select formControlName="matchDetection" #matchDetectionSelect>
|
|
<bit-option
|
|
*ngFor="let o of uriMatchOptions"
|
|
[label]="o.label"
|
|
[value]="o.value"
|
|
></bit-option>
|
|
</bit-select>
|
|
</bit-form-field>
|
|
</div>
|
|
</ng-container>
|