mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-30 08:10:34 +01:00
Refactor password generator type radio buttons to use base class (#1059)
* feat: update jslib version * refactor: use ngfor for options * Revert "feat: update jslib version" This reverts commit 76f1ce38190065a2e9a6be6557b5972c282e31d8. * chore: rem dead code
This commit is contained in:
parent
aa633480a0
commit
e1e2edf2e9
@ -10,15 +10,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-check form-check-inline">
|
||||
<input id="generate-password" name="type" value="password" class="form-check-input" type="radio"
|
||||
(change)="saveOptions()" [(ngModel)]="options.type">
|
||||
<label for="generate-password" class="form-check-label">{{'password' | i18n}}</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input id="generate-passphrase" name="type" value="passphrase" class="form-check-input" type="radio"
|
||||
(change)="saveOptions()" [(ngModel)]="options.type">
|
||||
<label for="generate-passphrase" class="form-check-label">{{'passphrase' | i18n}}</label>
|
||||
<div class="form-check form-check-inline" *ngFor="let o of passTypeOptions">
|
||||
<input class="form-check-input" type="radio" [(ngModel)]="options.type" name="Type_{{o.value}}"
|
||||
id="type_{{o.value}}" [value]="o.value" (change)="saveOptions()" [checked]="options.type === o.value">
|
||||
<label class="form-check-label" for="type_{{o.value}}">
|
||||
{{o.name}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<ng-container *ngIf="options.type === 'passphrase'">
|
||||
|
Loading…
Reference in New Issue
Block a user