Use radio buttons for password generator type instead of dropdown (#1894)
* fix: radio instead of dropdown * fix: revert changes, use from upstream * chore: remove unnecessary label * chore: undo unnecessary formatting * chore: undo unnecessary formatting * feat: update jslib version * chore: add label, remove unnec. intlz. * Remove unnecessary name attribute Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
This commit is contained in:
parent
72f315eada
commit
914d88770d
2
jslib
2
jslib
|
@ -1 +1 @@
|
||||||
Subproject commit 9ee31ad2fb950497a7c88c5073e23bf3bddf18c7
|
Subproject commit aff5ad1faabc4c680a6ff4e68b3abc301a50e9b4
|
|
@ -38,12 +38,15 @@
|
||||||
{{'options' | i18n}}
|
{{'options' | i18n}}
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<div class="box-content-row" appBoxRow>
|
<div class="box-content-row">
|
||||||
<label for="type" class="sr-only">{{'type' | i18n}}</label>
|
<label class="sr-only radio-header">{{'type' | i18n}}</label>
|
||||||
<select id="type" [(ngModel)]="options.type" (change)="saveOptions()">
|
<div class="radio-group text-default" appBoxRow *ngFor="let o of passTypeOptions">
|
||||||
<option value="password">{{'password' | i18n}}</option>
|
<input type="radio" [(ngModel)]="options.type" name="Type_{{o.value}}" id="type_{{o.value}}"
|
||||||
<option value="passphrase">{{'passphrase' | i18n}}</option>
|
[value]="o.value" (change)="saveOptions()" [checked]="options.type === o.value">
|
||||||
</select>
|
<label for="type_{{o.value}}">
|
||||||
|
{{o.name}}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue