From 780560249e9801da5ef37882a9c5a13207a9b1de Mon Sep 17 00:00:00 2001 From: mesayusriana12 Date: Tue, 30 Aug 2022 10:56:42 +0700 Subject: [PATCH] add: button to peek password in change password --- .../Profile/Partials/UpdatePasswordForm.vue | 38 ++++++++++++++----- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue b/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue index a101582..e06c6ed 100644 --- a/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue +++ b/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue @@ -7,6 +7,8 @@ import JetFormSection from '@/Jetstream/FormSection.vue'; import JetInput from '@/Jetstream/Input.vue'; import JetInputError from '@/Jetstream/InputError.vue'; import JetLabel from '@/Jetstream/Label.vue'; +import Button from '@/Jetstream/Button.vue'; +import Icon from '@/Components/Icon.vue'; const passwordInput = ref(null); const currentPasswordInput = ref(null); @@ -17,6 +19,12 @@ const form = useForm({ password_confirmation: '', }); +const peek = ref(false); + +const toggle = () => { + peek.value = !peek.value; +} + const updatePassword = () => { form.put(route('user-password.update'), { errorBag: 'updatePassword', @@ -50,14 +58,24 @@ const updatePassword = () => {