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
|
@ -16,7 +16,7 @@ function BufferItem(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);
|
||||
}
|
||||
|
||||
let classes = ["type-" + props.buffer.type];
|
||||
|
@ -54,7 +54,6 @@ export default function BufferList(props) {
|
|||
key=${buf.id}
|
||||
buffer=${buf}
|
||||
server=${server}
|
||||
isBouncer=${props.isBouncer}
|
||||
bouncerNetwork=${bouncerNetwork}
|
||||
onClick=${() => props.onBufferClick(buf)}
|
||||
onClose=${() => props.onBufferClose(buf)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue