Skip to content

Commit 25e1303

Browse files
committed
Fix: workspace status color
- running workspaces are green, failed workspaces are red - everything else is gray - resolves #101
1 parent fab60ca commit 25e1303

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Fixed
1212
- outdated Coder CLI binaries are cleaned up
13+
- workspace status color style: running workspaces are green, failed ones should be red, everything else is gray
1314

1415
## 2.1.2 - 2022-11-23
1516

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
652652

653653
private fun WorkspaceAgentModel.statusColor() = when (this.agentStatus) {
654654
RUNNING -> JBColor.GREEN
655-
STARTING, STOPPING, DELETING -> if (JBColor.isBright()) JBColor.LIGHT_GRAY else JBColor.DARK_GRAY
656-
else -> JBColor.RED
655+
FAILED -> JBColor.RED
656+
else -> if (JBColor.isBright()) JBColor.LIGHT_GRAY else JBColor.DARK_GRAY
657657
}
658658
}
659659

0 commit comments

Comments
 (0)