Add reopen button for closed rounds
Build and Push Docker Image / build (push) Successful in 9m43s
Details
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:
parent
13de30775e
commit
d6386be678
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue