From 4c06eb64cbed3562e428ce59857d1763098638f3 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 19 Nov 2025 09:15:49 +0100 Subject: allow images to upload and sort if according to their datetime --- static/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'static/index.js') diff --git a/static/index.js b/static/index.js index 2fcca88..c84aab9 100644 --- a/static/index.js +++ b/static/index.js @@ -100,7 +100,11 @@ const main = MainView.new({ main.active_kind = MainView.Kind.home; main.active_view = shuffle; }, - onsettings: () => { + onsettings: async () => { + if (!settings.profile) { + settings.profile = await api.session.current(); + } + main.active_kind = MainView.Kind.home; main.active_view = settings; }, -- cgit v1.2.3-70-g09d2