Add profile links for users page.

This commit is contained in:
yukirij 2024-10-18 14:24:15 -07:00
parent 5e9e839480
commit ea1f96dbac

View File

@ -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");
}