mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-28 18:26:19 -05:00
components/buffer-header: fix missing "join" button for parted channel
This commit is contained in:
parent
93ba0e6443
commit
ada9ff3b71
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue