Add reopen button for closed rounds
Build and Push Docker Image / build (push) Successful in 9m43s Details

Allows admins to reopen a closed round. When reopened, the voting start
date will automatically update to now (if it was in the future).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-02-05 16:51:02 +01:00
parent 13de30775e
commit d6386be678
1 changed files with 9 additions and 0 deletions

View File

@ -300,6 +300,15 @@ function RoundDetailContent({ roundId }: { roundId: string }) {
Close Round
</Button>
)}
{round.status === 'CLOSED' && (
<Button
onClick={() => updateStatus.mutate({ id: round.id, status: 'ACTIVE' })}
disabled={updateStatus.isPending}
>
<Play className="mr-2 h-4 w-4" />
Reopen Round
</Button>
)}
<AlertDialog>
<AlertDialogTrigger asChild>
<Button variant="destructive">