(devcontainer: WorkspaceAgentDevcontainer)
| 385 | }; |
| 386 | |
| 387 | function rebuildButtonLabel(devcontainer: WorkspaceAgentDevcontainer) { |
| 388 | switch (devcontainer.status) { |
| 389 | case "deleting": |
| 390 | return "Deleting"; |
| 391 | |
| 392 | case "stopping": |
| 393 | return "Stopping"; |
| 394 | |
| 395 | default: |
| 396 | if (devcontainer.container) { |
| 397 | return "Rebuild"; |
| 398 | } |
| 399 | return "Start"; |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | type DevcontainerDeleteErrorDialogProps = { |
| 404 | open: boolean; |
no outgoing calls
no test coverage detected