mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
fix: a row whose migrations are running does not offer "Set up"
Found by walking every branch on row.status rather than the ones I remembered: `running` falls through to the catch-all action, which labelled itself "Set up" in accent. Disabled, so nothing could come of it, but it is the same label-outruns-state mistake the last rounds were spent on. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xg8vXUuHCH3aRkf91sfxjx
This commit is contained in:
co-authored by
Claude Opus 5
parent
2a7a58221f
commit
d5b03896ac
@@ -558,13 +558,21 @@
|
||||
{row.status === 'failed' ? 'Run migrations again' : 'Run migrations'}
|
||||
</Button>
|
||||
{:else}
|
||||
<!-- Everything the branches above do not claim: a configured row, one whose
|
||||
migrations are running, and one whose data table does not exist yet. -->
|
||||
<Button
|
||||
variant={row.status === 'done' ? 'subtle' : 'accent'}
|
||||
unifiedSize="sm"
|
||||
disabled={working}
|
||||
onClick={() => openWizard(row.name)}
|
||||
>
|
||||
{row.status === 'done' ? 'Configured' : 'Set up'}
|
||||
{#if row.status === 'done'}
|
||||
Configured
|
||||
{:else if row.status === 'running'}
|
||||
Setting up…
|
||||
{:else}
|
||||
Set up
|
||||
{/if}
|
||||
</Button>
|
||||
{/if}
|
||||
{/snippet}
|
||||
|
||||
Reference in New Issue
Block a user