Add option to extend availability by 24h
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 34s Details

This commit is contained in:
Ladd Hoffman 2024-03-16 22:00:55 -05:00
parent 90b7e67270
commit 4657525d3c
1 changed files with 8 additions and 3 deletions

View File

@ -92,9 +92,14 @@ function AvailabilityStakes({ showActions, showAmount, onlyShowAvailable }) {
{showActions && (
<td>
{s.currentUserIsWorker() && !s.assigned && !s.reclaimed && (
<Button onClick={() => extendAvailabilityStake(s.id, 3600)}>
Extend 1 Hr.
</Button>
<>
<Button onClick={() => extendAvailabilityStake(s.id, 3600)}>
Extend 1 Hr.
</Button>
<Button onClick={() => extendAvailabilityStake(s.id, 86400)}>
Extend 24 Hr.
</Button>
</>
)}
{s.currentUserIsWorker() && s.timeRemaining <= 0
&& !s.assigned && !s.reclaimed && (