From 5049b055478769b0b597c635a978aa4799ea093c Mon Sep 17 00:00:00 2001 From: carlossa Date: Fri, 20 Dec 2024 13:01:56 +0100 Subject: [PATCH 1/9] fix: refs #7699 add icons and hint --- src/components/common/VnChangePassword.vue | 40 ++++++++++++++-------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/src/components/common/VnChangePassword.vue b/src/components/common/VnChangePassword.vue index 79784f3c5..9d59a3d3f 100644 --- a/src/components/common/VnChangePassword.vue +++ b/src/components/common/VnChangePassword.vue @@ -19,6 +19,8 @@ const changePassDialog = ref(); const passwords = ref({ newPassword: null, repeatPassword: null }); const requirements = ref([]); const isLoading = ref(false); +const showPwd = true; +const showRpPwd = true; const validate = async () => { const { newPassword, repeatPassword, oldPassword } = passwords.value; @@ -79,27 +81,35 @@ defineExpose({ show: () => changePassDialog.value.show() }); autofocus /> - + v-model="passwords.newPassword" + :label="$t('New password')" + :type="showPwd ? 'password' : 'text'" + hint="" + filled + > + + + -- 2.40.1 From 01f63ff239ef68d460eb0914fc9d0f8cff676679 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 24 Dec 2024 09:52:31 +0100 Subject: [PATCH 2/9] fix: refs #7699 fix password visibility --- src/components/common/VnChangePassword.vue | 34 +++++++++++++--------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/components/common/VnChangePassword.vue b/src/components/common/VnChangePassword.vue index 9d59a3d3f..9026df85c 100644 --- a/src/components/common/VnChangePassword.vue +++ b/src/components/common/VnChangePassword.vue @@ -19,8 +19,8 @@ const changePassDialog = ref(); const passwords = ref({ newPassword: null, repeatPassword: null }); const requirements = ref([]); const isLoading = ref(false); -const showPwd = true; -const showRpPwd = true; +const showPwd = ref(true); +const showRpPwd = ref(true); const validate = async () => { const { newPassword, repeatPassword, oldPassword } = passwords.value; @@ -76,10 +76,18 @@ defineExpose({ show: () => changePassDialog.value.show() }); v-if="props.askOldPass" :label="t('Old password')" v-model="passwords.oldPassword" - type="password" + :type="showPwd ? 'password' : 'text'" :required="true" autofocus - /> + > + + changePassDialog.value.show() }); :label="$t('New password')" :type="showPwd ? 'password' : 'text'" hint="" - filled >