Linting fixes in Password.vue

Three small fixes:
- className where "class" is correct
- a let that should be a const as the variable is never reassigned
- a superfluous % after a "0" CSS value
pull/1363/head
Burtchen 2021-07-02 19:03:04 +02:00 committed by GitHub
parent 9a43ebdb02
commit c7a553ffb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
<div class="p-password-meter"> <div class="p-password-meter">
<div :class="strengthClass" :style="{'width': meter ? meter.width : ''}"></div> <div :class="strengthClass" :style="{'width': meter ? meter.width : ''}"></div>
</div> </div>
<div className="p-password-info">{{infoText}}</div> <div class="p-password-info">{{infoText}}</div>
</slot> </slot>
<slot name="footer"></slot> <slot name="footer"></slot>
</div> </div>
@ -164,7 +164,7 @@ export default {
}, },
onKeyUp(event) { onKeyUp(event) {
if (this.feedback) { if (this.feedback) {
let value = event.target.value; const value = event.target.value;
let label = null; let label = null;
let meter = null; let meter = null;
@ -330,7 +330,7 @@ export default {
.p-password-strength { .p-password-strength {
height: 100%; height: 100%;
width: 0%; width: 0;
transition: width 1s ease-in-out; transition: width 1s ease-in-out;
} }