mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 23:43:42 +01:00
Dim away users in member list
References: https://todo.sr.ht/~emersion/gamja/13
This commit is contained in:
parent
e29ccf7220
commit
fcce340846
@ -43,6 +43,7 @@ class MemberItem extends Component {
|
||||
|
||||
let title = null;
|
||||
let user = this.props.user;
|
||||
let classes = ["nick"];
|
||||
if (user) {
|
||||
let mask = "";
|
||||
if (user.username && user.hostname) {
|
||||
@ -61,13 +62,18 @@ class MemberItem extends Component {
|
||||
if (user.account) {
|
||||
title += `\nAuthenticated as ${user.account}`;
|
||||
}
|
||||
|
||||
if (user.away) {
|
||||
classes.push("away");
|
||||
title += "\nAway";
|
||||
}
|
||||
}
|
||||
|
||||
return html`
|
||||
<li>
|
||||
<a
|
||||
href=${getNickURL(this.props.nick)}
|
||||
class="nick"
|
||||
class=${classes.join(" ")}
|
||||
title=${title}
|
||||
onClick=${this.handleClick}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user