mirror of
https://github.com/bitwarden/browser
synced 2024-12-25 09:32:06 +01:00
Convert import select to the searchable CL select (#5573)
This commit is contained in:
parent
57cc3f4acd
commit
ba5e890e86
@ -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>
|
id="type"
|
||||||
<select
|
name="Format"
|
||||||
id="type"
|
bitInput
|
||||||
name="Format"
|
[(ngModel)]="format"
|
||||||
[(ngModel)]="format"
|
[disabled]="importBlockedByPolicy"
|
||||||
class="form-control"
|
required
|
||||||
[disabled]="importBlockedByPolicy"
|
>
|
||||||
required
|
<bit-option *ngFor="let o of featuredImportOptions" [value]="o.id" [label]="o.name" />
|
||||||
>
|
<ng-container *ngIf="importOptions && importOptions.length">
|
||||||
<option *ngFor="let o of featuredImportOptions" [ngValue]="o.id">{{ o.name }}</option>
|
<bit-option value="-" disabled />
|
||||||
<ng-container *ngIf="importOptions && importOptions.length">
|
<bit-option *ngFor="let o of importOptions" [value]="o.id" [label]="o.name" />
|
||||||
<option value="-" disabled></option>
|
</ng-container>
|
||||||
<option *ngFor="let o of importOptions" [ngValue]="o.id">{{ o.name }}</option>
|
</bit-select>
|
||||||
</ng-container>
|
</bit-form-field>
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</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
|
||||||
|
Loading…
Reference in New Issue
Block a user