1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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