aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-11-25 09:27:51 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-11-25 09:27:51 +0100
commit605b03bfbd36e41819000ee0aed80df3c767b069 (patch)
tree2458e1432d0673fe86b560dd20e1392136580f54 /static/index.js
parentdc36b1684c4da47defe8d3941ef60efb7cd8087e (diff)
fix login dialog and logout
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/index.js b/static/index.js
index e67d234..338d636 100644
--- a/static/index.js
+++ b/static/index.js
@@ -59,7 +59,8 @@ const month_select = MonthSelect.new({
const upload_bar = UploadBar.new();
const settings = SettingsView.new({
- onlogout: () => {
+ onlogout: async () => {
+ await api.session.drop();
login.show();
main.active_view = image_viewer;
settings.profile = null;