Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion packages/web/app/components/board-page/share-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export const ShareBoardButton = () => {
type="default"
onClick={showDrawer}
icon={!isConnected && isConnecting ? <LoadingOutlined /> : <TeamOutlined />}
disabled={!isBackendMode && !clientId}
/>
</Badge>
<Drawer
Expand Down Expand Up @@ -122,6 +121,29 @@ export const ShareBoardButton = () => {
{/* Backend Mode Content */}
{!isControllerMode && (
<>
{/* No backend configured */}
{!isBackendMode && (
<Flex
vertical
align="center"
gap="middle"
style={{
padding: '24px',
background: themeTokens.colors.warningBg,
border: `1px solid ${themeTokens.colors.warning}`,
borderRadius: themeTokens.borderRadius.md,
}}
>
<Text strong style={{ color: themeTokens.colors.warning }}>
Party Mode Not Configured
</Text>
<Text type="secondary" style={{ textAlign: 'center' }}>
Set the NEXT_PUBLIC_WS_URL environment variable to your backend WebSocket URL and redeploy to
enable Party Mode.
</Text>
</Flex>
)}

{/* Connecting */}
{isConnecting && (
<Flex vertical align="center" gap="middle" style={{ padding: '24px' }}>
Expand Down