MCPcopy Index your code
hub / github.com/coder/coder / rebuildButtonLabel

Function rebuildButtonLabel

site/src/modules/resources/AgentDevcontainerCard.tsx:387–401  ·  view source on GitHub ↗
(devcontainer: WorkspaceAgentDevcontainer)

Source from the content-addressed store, hash-verified

385};
386
387function 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
403type DevcontainerDeleteErrorDialogProps = {
404 open: boolean;

Callers 1

AgentDevcontainerCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected