Compare commits
1 Commits
main
...
153-fix-en
Author | SHA1 | Date | |
---|---|---|---|
91cd6737f9 |
@ -16,9 +16,10 @@ pub fn Login() -> impl IntoView {
|
|||||||
let loading = create_rw_signal(false);
|
let loading = create_rw_signal(false);
|
||||||
let error_msg = create_rw_signal(None);
|
let error_msg = create_rw_signal(None);
|
||||||
|
|
||||||
let toggle_password = move |_| {
|
let toggle_password = move |ev: leptos::ev::MouseEvent| {
|
||||||
|
ev.prevent_default();
|
||||||
set_show_password.update(|show_password| *show_password = !*show_password);
|
set_show_password.update(|show_password| *show_password = !*show_password);
|
||||||
log!("showing password");
|
log!("Password visibility toggled");
|
||||||
};
|
};
|
||||||
|
|
||||||
let on_submit = move |ev: leptos::ev::SubmitEvent| {
|
let on_submit = move |ev: leptos::ev::SubmitEvent| {
|
||||||
@ -94,16 +95,16 @@ pub fn Login() -> impl IntoView {
|
|||||||
/>
|
/>
|
||||||
<span>Password</span>
|
<span>Password</span>
|
||||||
<i></i>
|
<i></i>
|
||||||
<Show
|
<Show when=move || { show_password() == false }
|
||||||
when=move || {show_password() == false}
|
fallback=move || view! {
|
||||||
fallback=move || view!{ <button on:click=toggle_password class="login-password-visibility">
|
<button on:click=toggle_password class="login-password-visibility">
|
||||||
<Icon icon=icondata::AiEyeInvisibleFilled />
|
<Icon icon=icondata::AiEyeInvisibleFilled />
|
||||||
</button> /> }
|
</button>
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<button on:click=toggle_password class="login-password-visibility">
|
<button on:click=toggle_password class="login-password-visibility">
|
||||||
<Icon icon=icondata::AiEyeFilled />
|
<Icon icon=icondata::AiEyeFilled />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
<a href="" class="forgot-pw">Forgot Password?</a>
|
<a href="" class="forgot-pw">Forgot Password?</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user