User Authentication and Other fixes #1

Merged
vinod merged 30 commits from user-auth into main 2023-02-05 09:01:08 +00:00
Showing only changes of commit 20d9a6a2af - Show all commits

View File

@@ -1969,6 +1969,11 @@ async fn PageBar<G: Html>(cx: Scope<'_>) -> View<G> {
let currpg = create_signal(cx, (*app_state.pagenum.get()).to_string());
let input_ref = create_node_ref(cx);
create_effect(cx, || {
// Calling checked.set will also update the `checked` property on the input element.
currpg.set( (*app_state.pagenum.get()).to_string())
});
let handle_add = move |_| {
if *app_state.pagenum.get() < *app_state.maxpage.get() {
app_state.pagenum.set(*app_state.pagenum.get() + 1);