Commit 516aab4
committed
fix: allow configuration editing on failed workspaces
The Configuration tab was gated behind a `status === 'ready'` check,
which blocked users from viewing or editing pixi.toml when a workspace
failed during initial creation. This made it impossible to fix a broken
configuration without recreating the workspace from scratch.
The backend (GetPixiToml / SavePixiToml) already supports reading and
writing pixi.toml regardless of workspace status, so this was purely a
frontend restriction. Removed the status guard from three places:
- useEffect that loads toml content when switching to the tab
- disabled prop on the Edit button in the workspace header
- conditional block that replaced the editor with a "must be ready" message1 parent 2fac91d commit 516aab4
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
| |||
527 | 526 | | |
528 | 527 | | |
529 | 528 | | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 529 | + | |
535 | 530 | | |
536 | 531 | | |
537 | 532 | | |
| |||
0 commit comments