fixes for changing generator length

This commit is contained in:
Kyle Spearrin 2019-04-15 22:34:22 -04:00
parent a25ceb49ce
commit 9539662166
4 changed files with 10 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 0b0245b90fbb99fe677a94a2f97b8245cd255c1f
Subproject commit d3a2dfe2e8ea27662aaf189e155d81681ced0d8e

View File

@ -64,7 +64,7 @@
<div class="box-content-row box-content-row-slider" appBoxRow>
<label for="length">{{'length' | i18n}}</label>
<input id="length" type="number" min="5" max="128" [(ngModel)]="options.length"
(blur)="saveOptions()">
(change)="lengthChanged()" (blur)="saveOptions()">
<input id="lengthRange" type="range" min="5" max="128" step="1" [(ngModel)]="options.length"
(change)="sliderChanged()" (input)="sliderInput()">
</div>

View File

@ -37,6 +37,10 @@ export class PasswordGeneratorComponent extends BasePasswordGeneratorComponent {
this.close();
}
lengthChanged() {
document.getElementById('length').focus();
}
close() {
this.location.back();
}

View File

@ -11,8 +11,11 @@ app-sync {
app-password-generator .password-block {
font-size: $font-size-large;
font-family: $font-family-monospace;
text-align: center;
margin: 20px;
.password-wrapper {
text-align: center;
}
}
app-home {