From 1fd7009e251a17e9d12edb1c1ef0a75e3c4d3241 Mon Sep 17 00:00:00 2001 From: insects Date: Fri, 7 Feb 2025 15:37:17 +0100 Subject: [PATCH] also save account id when logging in normally --- src/templates.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/templates.rs b/src/templates.rs index 559059b..146531b 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -156,6 +156,7 @@ pub fn main_page( }; let template = html! { + span style="display: none;" id="account-id" { (acc_id) } .header { div {} .side { @@ -207,6 +208,8 @@ pub fn main_page( div id="list" hx-get="" hx-trigger="every 10s" hx-swap="innerHTML" hx-target="this" hx-on="changeDates" { (list) } + + script src="/static/scripts/save.js" type="text/javascript" {} }; if only_list {