1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Use radio buttons for password generator type instead of dropdown (#955)

* fix: radio instead of dropdown

* fix: remove, depend on upstream jslib

* chore: remove unnecessary label

* fix: missing tag

* chore: add label, remove dupl. intlz.

* feat: update jslib version

* Revert "feat: update jslib version"

This reverts commit 85f4b758bda793f10e32f2aea6928bab9be02e07.

* Update jslib

Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
This commit is contained in:
Shashank S
2021-07-07 16:58:41 +05:30
committed by GitHub
parent cf56b68ba5
commit 359daffd9e
2 changed files with 12 additions and 7 deletions

2
jslib

Submodule jslib updated: 6f6b5a5503...119699b82c

View File

@@ -27,12 +27,17 @@
</button>
</div>
<div class="box-content condensed" [hidden]="!showOptions">
<div class="box-content-row" appBoxRow>
<label for="type" class="sr-only">{{'type' | i18n}}</label>
<select id="type" [(ngModel)]="options.type" (change)="saveOptions()">
<option value="password">{{'password' | i18n}}</option>
<option value="passphrase">{{'passphrase' | i18n}}</option>
</select>
<div class="box-content-row box-content-row-radio">
<label class="sr-only radio-header">{{'type' | i18n}}</label>
<div class="radio-group text-default" appBoxRow name="PassTypeOptions"
*ngFor="let o of passTypeOptions">
<input type="radio" class="radio" [(ngModel)]="options.type" name="Type_{{o.value}}"
id="type_{{o.value}}" [value]="o.value" (change)="saveOptions()"
[checked]="options.type === o.value">
<label class="unstyled" for="type_{{o.value}}">
{{o.name}}
</label>
</div>
</div>
</div>
</div>