Show latest discussions in /contacts
This commit is contained in:
parent
fb8a8b2224
commit
af50754aff
1 changed files with 6 additions and 4 deletions
|
|
@ -69,12 +69,14 @@
|
|||
);
|
||||
const contactsActive = $derived(page.url.pathname === "/contacts");
|
||||
|
||||
// Article pages (both modes) and the full-mode landing have no single room to
|
||||
// chat in, so they render the latest-discussions panel instead of room chat.
|
||||
// The simple-mode home keeps its room chat, like every full-mode room.
|
||||
// Standalone pages (articles, contacts) and the full-mode landing have no
|
||||
// single room to chat in, so they render the latest-discussions panel instead
|
||||
// of room chat. The simple-mode home keeps its room chat, like every room.
|
||||
const isArticle = $derived(page.url.pathname.startsWith("/resource/"));
|
||||
const showDiscussions = $derived(
|
||||
isArticle || (mode === "full" && page.url.pathname === "/"),
|
||||
isArticle ||
|
||||
contactsActive ||
|
||||
(mode === "full" && page.url.pathname === "/"),
|
||||
);
|
||||
const showChat = $derived(chatEnabled && !showDiscussions);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue