Remove pause/resume controls when draft is complete, rename Live to Connected
- Hide Pause/Resume Draft buttons when isDraftComplete is true - Change 'Live' status indicator to 'Connected' in both draft room and draft board views https://claude.ai/code/session_01AUaKzx465NrY29Qv6MVwjC
This commit is contained in:
parent
7294084c13
commit
b49e955034
2 changed files with 3 additions and 3 deletions
|
|
@ -165,7 +165,7 @@ export default function DraftBoard() {
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
<span className="text-sm font-medium">
|
<span className="text-sm font-medium">
|
||||||
{isConnected ? "Live" : "Disconnected"}
|
{isConnected ? "Connected" : "Disconnected"}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -844,7 +844,7 @@ export default function DraftRoom() {
|
||||||
<Button onClick={handleStartDraft}>Start Draft</Button>
|
<Button onClick={handleStartDraft}>Start Draft</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{isCommissioner && season.status === "draft" && (
|
{isCommissioner && season.status === "draft" && !isDraftComplete && (
|
||||||
<>
|
<>
|
||||||
{isPaused ? (
|
{isPaused ? (
|
||||||
<Button onClick={handleResumeDraft} variant="default">
|
<Button onClick={handleResumeDraft} variant="default">
|
||||||
|
|
@ -865,7 +865,7 @@ export default function DraftRoom() {
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
<span className="text-sm font-medium">
|
<span className="text-sm font-medium">
|
||||||
{isConnected ? "Live" : "Disconnected"}
|
{isConnected ? "Connected" : "Disconnected"}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<Button variant="outline" asChild>
|
<Button variant="outline" asChild>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue