forked from andyburke/autonomous.contact
feature: watches on the backend, need frontend implementation for
notifications and unread indicators
This commit is contained in:
parent
7046bb0389
commit
6293374bb7
28 changed files with 1405 additions and 608 deletions
|
|
@ -68,12 +68,7 @@
|
|||
const form = document.currentScript.closest("form");
|
||||
form.on_reply = (response) => {
|
||||
const user = response.user;
|
||||
document.body.dataset.user = JSON.stringify(user);
|
||||
document.body.dataset.perms = user.permissions.join(":");
|
||||
|
||||
document.dispatchEvent(
|
||||
new CustomEvent("user_logged_in", { detail: { user } }),
|
||||
);
|
||||
APP.login( user );
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
|
@ -127,7 +122,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
APP.on( 'load', () => {
|
||||
const query = new URL(document.location.toString())
|
||||
.searchParams;
|
||||
const invite_code = query.get("invite_code");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue