Improved password change form & fixed typo

This commit is contained in:
Viktor Suprun 2021-09-01 09:13:04 +11:00
parent e2ee18a5e7
commit c319d1fc33
No known key found for this signature in database
GPG Key ID: 659E730F4A73681D

View File

@ -13,7 +13,10 @@
<v-text-field
v-model="item.password"
label="Password"
:rules="[v => !!v || 'Email is required']"
:type="showPassword ? 'text' : 'password'"
:append-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'"
@click:append="showPassword = !showPassword"
:rules="[v => !!v || 'Password is required']"
required
:disabled="formSaving"
></v-text-field>
@ -25,6 +28,12 @@ import ItemFormBase from '@/components/ItemFormBase';
export default {
mixins: [ItemFormBase],
data() {
return {
showPassword: false,
};
},
methods: {
async loadData() {
this.item = {};