Add profile links for users page.
This commit is contained in:
parent
5e9e839480
commit
ea1f96dbac
@ -1220,7 +1220,10 @@ const SCENES = {
|
|||||||
callback = callback.bind({handle: msg.data.users[r].handle});
|
callback = callback.bind({handle: msg.data.users[r].handle});
|
||||||
buttons.push(UI.button(LANG("challenge"), callback));
|
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) {
|
if(!msg.data.users[r].is_online) {
|
||||||
handle = UI.span([handle], "text-system");
|
handle = UI.span([handle], "text-system");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user