1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

pass gen fixes. word sep option

This commit is contained in:
Kyle Spearrin 2018-10-08 22:06:15 -04:00
parent 05c9957fd2
commit f9058fcddc
3 changed files with 14 additions and 7 deletions

2
jslib

@ -1 +1 @@
Subproject commit d5f86747bf5533308b271b5fade75a6761f5d4e5
Subproject commit a867c14b2a8bb5f75cd495018e6c86eff22651b9

View File

@ -8,23 +8,27 @@
</div>
<div class="form-group">
<div class="form-check">
<input id="generate-password" name="generator-type" value="0" class="form-check-input" type="radio" (change)="saveOptions()"
[(ngModel)]="type">
<input id="generate-password" name="type" value="password" class="form-check-input" type="radio" (change)="saveOptions()"
[(ngModel)]="options.type">
<label for="generate-password">{{'generatePassword' | i18n}}</label>
</div>
<div class="form-check">
<input id="generate-passphrase" name="generator-type" value="1" class="form-check-input" type="radio" (change)="saveOptions()"
[(ngModel)]="type">
<input id="generate-passphrase" name="type" value="passphrase" class="form-check-input" type="radio" (change)="saveOptions()"
[(ngModel)]="options.type">
<label for="generate-passphrase">{{'generatePassphrase' | i18n}}</label>
</div>
</div>
<div class="row" *ngIf="type === '1'">
<div class="row" *ngIf="options.type === 'passphrase'">
<div class="form-group col-4">
<label for="num-words">{{'numWords' | i18n}}</label>
<input id="num-words" class="form-control" type="number" min="3" max="20" [(ngModel)]="options.numWords" (blur)="saveOptions()">
</div>
<div class="form-group col-4">
<label for="word-separator">{{'wordSeparator' | i18n}}</label>
<input id="word-separator" class="form-control" type="text" maxlength="1" [(ngModel)]="options.wordSeparator" (blur)="saveOptions()">
</div>
</div>
<ng-container *ngIf="type === '0'">
<ng-container *ngIf="options.type === 'password'">
<div class="row">
<div class="form-group col-4">
<label for="length">{{'length' | i18n}}</label>

View File

@ -804,6 +804,9 @@
"numWords": {
"message": "Number of Words"
},
"wordSeparator": {
"message": "Word Separator"
},
"passwordHistory": {
"message": "Password History"
},