mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-02-26 15:54:03 -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);
|
description = linkify(stripANSI(props.buffer.topic), props.onChannelClick);
|
||||||
}
|
}
|
||||||
if (props.buffer.joined) {
|
if (props.buffer.joined) {
|
||||||
actions = html`
|
actions.push(html`
|
||||||
<button
|
<button
|
||||||
key="part"
|
key="part"
|
||||||
class="danger"
|
class="danger"
|
||||||
onClick=${handleCloseClick}
|
onClick=${handleCloseClick}
|
||||||
>Leave</button>
|
>Leave</button>
|
||||||
`;
|
`);
|
||||||
} else {
|
} else {
|
||||||
if (fullyConnected) {
|
if (fullyConnected) {
|
||||||
actions.push(html`
|
actions.push(html`
|
||||||
|
@ -150,13 +150,13 @@ export default function BufferHeader(props) {
|
||||||
>Join</button>
|
>Join</button>
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
actions = html`
|
actions.push(html`
|
||||||
<button
|
<button
|
||||||
key="part"
|
key="part"
|
||||||
class="danger"
|
class="danger"
|
||||||
onClick=${handleCloseClick}
|
onClick=${handleCloseClick}
|
||||||
>Close</button>
|
>Close</button>
|
||||||
`;
|
`);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BufferType.NICK:
|
case BufferType.NICK:
|
||||||
|
|
Loading…
Reference in a new issue