Add away indicator
This commit is contained in:
parent
c59a8ff63c
commit
0bd2e10631
4 changed files with 26 additions and 2 deletions
|
@ -15,7 +15,16 @@ export default function BufferHeader(props) {
|
|||
description = props.buffer.topic;
|
||||
} else if (props.buffer.who) {
|
||||
var who = props.buffer.who;
|
||||
description = `${who.realname} (${who.username}@${who.hostname})`;
|
||||
|
||||
var statusClass = "here";
|
||||
var statusText = "User is online";
|
||||
if (who.away) {
|
||||
statusClass = "gone";
|
||||
statusText = "User is away";
|
||||
}
|
||||
var status = html`<span class="status status-${statusClass}" title=${statusText}>●</span>`;
|
||||
|
||||
description = html`${status} ${who.realname} (${who.username}@${who.hostname})`;
|
||||
}
|
||||
|
||||
var closeText = "Close";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue