feat: moving dialog script to head

this way htmx page switch would keep it.
and calling on event DOM loaded means elements should be found
This commit is contained in:
efim
2023-10-06 09:40:28 +00:00
parent e1346e2f96
commit a9fce1bcbf
2 changed files with 44 additions and 29 deletions

View File

@@ -4,9 +4,9 @@ https://pocketbase.io/docs/go-overview/
* plan
** DONE start pocketbase
** DONE add middlewares for cookie session
** TODO add index page, that will have either "current user" or 'login' link
*** TODO let's add some content that only opens up when person is authed
*** TODO also, how do i logout?
** DONE add index page, that will have either "current user" or 'login' link
*** DONE let's add some content that only opens up when person is authed
*** DONE also, how do i logout?
separate route that deleted the cookie i guess.
since auth is a jwt which would expire on its own
and htmx get thingy, and reload i guess?