1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Convert import select to the searchable CL select (#5573)

This commit is contained in:
Daniel James Smith
2023-06-09 09:50:42 +02:00
committed by GitHub
parent 57cc3f4acd
commit ba5e890e86

View File

@@ -5,27 +5,23 @@
{{ "personalOwnershipPolicyInEffectImports" | i18n }} {{ "personalOwnershipPolicyInEffectImports" | i18n }}
</app-callout> </app-callout>
<form #form (ngSubmit)="submit()" ngNativeValidate> <form #form (ngSubmit)="submit()" ngNativeValidate>
<div class="row"> <bit-form-field class="tw-w-1/2">
<div class="col-6"> <bit-label for="type">1. {{ "selectFormat" | i18n }}</bit-label>
<div class="form-group"> <bit-select
<label for="type">1. {{ "selectFormat" | i18n }}</label>
<select
id="type" id="type"
name="Format" name="Format"
bitInput
[(ngModel)]="format" [(ngModel)]="format"
class="form-control"
[disabled]="importBlockedByPolicy" [disabled]="importBlockedByPolicy"
required required
> >
<option *ngFor="let o of featuredImportOptions" [ngValue]="o.id">{{ o.name }}</option> <bit-option *ngFor="let o of featuredImportOptions" [value]="o.id" [label]="o.name" />
<ng-container *ngIf="importOptions && importOptions.length"> <ng-container *ngIf="importOptions && importOptions.length">
<option value="-" disabled></option> <bit-option value="-" disabled />
<option *ngFor="let o of importOptions" [ngValue]="o.id">{{ o.name }}</option> <bit-option *ngFor="let o of importOptions" [value]="o.id" [label]="o.name" />
</ng-container> </ng-container>
</select> </bit-select>
</div> </bit-form-field>
</div>
</div>
<app-callout type="info" title="{{ getFormatInstructionTitle() }}" *ngIf="format"> <app-callout type="info" title="{{ getFormatInstructionTitle() }}" *ngIf="format">
<ng-container *ngIf="format === 'bitwardencsv' || format === 'bitwardenjson'"> <ng-container *ngIf="format === 'bitwardencsv' || format === 'bitwardenjson'">
See detailed instructions on our help site at See detailed instructions on our help site at