Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
style(profile): add expand transition when editing password
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Aug 6, 2023
1 parent 7fa8fa6 commit 50b2bb3
Showing 1 changed file with 26 additions and 20 deletions.
46 changes: 26 additions & 20 deletions src/views/ProfileView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -377,26 +377,32 @@ watch(
:rules="passwordRules"
>
</VTextField>
<VTextField
v-if="currentPassword"
v-model="newPassword"
label="Enter your new password"
:type="seeNewPassword ? 'text' : 'password'"
:append-inner-icon="
seeNewPassword ? 'mdi-eye' : 'mdi-eye-off'
"
:rules="newPasswordRules"
></VTextField>
<VTextField
v-if="currentPassword"
v-model="confirmNewPassword"
label="Confirm your new password"
:type="seeConfirmNewPassword ? 'text' : 'password'"
:append-inner-icon="
seeConfirmNewPassword ? 'mdi-eye' : 'mdi-eye-off'
"
:rules="confirmPasswordRules"
></VTextField>
<VExpandTransition>
<VTextField
v-if="currentPassword"
v-model="newPassword"
label="Enter your new password"
:type="seeNewPassword ? 'text' : 'password'"
:append-inner-icon="
seeNewPassword ? 'mdi-eye' : 'mdi-eye-off'
"
:rules="newPasswordRules"
></VTextField>
</VExpandTransition>
<VExpandTransition>
<VTextField
v-if="currentPassword"
v-model="confirmNewPassword"
label="Confirm your new password"
:type="seeConfirmNewPassword ? 'text' : 'password'"
:append-inner-icon="
seeConfirmNewPassword
? 'mdi-eye'
: 'mdi-eye-off'
"
:rules="confirmPasswordRules"
></VTextField>
</VExpandTransition>
</VCol>
<VCol cols="12">
<VBtn
Expand Down

0 comments on commit 50b2bb3

Please sign in to comment.