From ea1f96dbac2ef71ffc5a7e53043e2683e9d7cb00 Mon Sep 17 00:00:00 2001 From: yukirij Date: Fri, 18 Oct 2024 14:24:15 -0700 Subject: [PATCH] Add profile links for users page. --- www/js/scene.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/js/scene.js b/www/js/scene.js index 36834d2..0a71cba 100644 --- a/www/js/scene.js +++ b/www/js/scene.js @@ -1220,7 +1220,10 @@ const SCENES = { callback = callback.bind({handle: msg.data.users[r].handle}); buttons.push(UI.button(LANG("challenge"), callback)); - let handle = UI.text(msg.data.users[r].handle); + let callback_profile_dawn = function() { SCENE.load(SCENES.Profile, { handle: this.handle }); } + callback_profile_dawn = callback_profile_dawn.bind({ handle: msg.data.users[r].handle }); + let handle = UI.link(msg.data.users[r].handle, callback_profile_dawn); + if(!msg.data.users[r].is_online) { handle = UI.span([handle], "text-system"); }