Move isBouncer props to server state
Avoids having to pass this around.
This commit is contained in:
parent
f81c564d23
commit
f3d38859d3
5 changed files with 11 additions and 17 deletions
|
@ -86,7 +86,7 @@ export default function BufferHeader(props) {
|
|||
>Join channel</button>
|
||||
`;
|
||||
|
||||
if (props.isBouncer) {
|
||||
if (props.server.isBouncer) {
|
||||
if (props.server.bouncerNetID) {
|
||||
if (fullyConnected) {
|
||||
actions.push(joinButton);
|
||||
|
@ -221,7 +221,7 @@ export default function BufferHeader(props) {
|
|||
|
||||
let name = props.buffer.name;
|
||||
if (props.buffer.type == BufferType.SERVER) {
|
||||
name = getServerName(props.server, props.bouncerNetwork, props.isBouncer);
|
||||
name = getServerName(props.server, props.bouncerNetwork);
|
||||
}
|
||||
|
||||
return html`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue