Pretty-print buffer name in buffer header
This commit is contained in:
parent
6e16163103
commit
bc7162ebe2
3 changed files with 24 additions and 19 deletions
|
@ -1,22 +1,6 @@
|
|||
import * as irc from "../lib/irc.js";
|
||||
import { html, Component } from "../lib/index.js";
|
||||
import { BufferType, Unread, getBufferURL } from "../state.js";
|
||||
|
||||
function getNetworkName(network, bouncerNetwork, bouncer) {
|
||||
if (bouncerNetwork && bouncerNetwork.name) {
|
||||
return bouncerNetwork.name;
|
||||
}
|
||||
if (bouncer) {
|
||||
return "bouncer";
|
||||
}
|
||||
|
||||
var netName = network.isupport.get("NETWORK");
|
||||
if (netName) {
|
||||
return netName;
|
||||
}
|
||||
|
||||
return "server";
|
||||
}
|
||||
import { BufferType, Unread, getBufferURL, getNetworkName } from "../state.js";
|
||||
|
||||
function BufferItem(props) {
|
||||
function handleClick(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue