components/buffer-header: fix missing "join" button for parted channel

This commit is contained in:
Simon Ser 2021-12-03 19:09:52 +01:00
parent 93ba0e6443
commit ada9ff3b71

View file

@ -134,13 +134,13 @@ export default function BufferHeader(props) {
description = linkify(stripANSI(props.buffer.topic), props.onChannelClick);
}
if (props.buffer.joined) {
actions = html`
actions.push(html`
<button
key="part"
class="danger"
onClick=${handleCloseClick}
>Leave</button>
`;
`);
} else {
if (fullyConnected) {
actions.push(html`
@ -150,13 +150,13 @@ export default function BufferHeader(props) {
>Join</button>
`);
}
actions = html`
actions.push(html`
<button
key="part"
class="danger"
onClick=${handleCloseClick}
>Close</button>
`;
`);
}
break;
case BufferType.NICK: