Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit da6671b

Browse files
committedJun 12, 2024··
Make version column display outdated status
Before it was (probably on accident) just displaying the status again.
1 parent 5e11642 commit da6671b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
 

‎CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
## Unreleased
66

7+
### Fixed
8+
9+
- The version column now displays "Up to date" or "Outdated" instead of
10+
duplicating the status column.
11+
712
## 2.11.7 - 2024-05-22
813

914
### Fixed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,13 @@ class WorkspacesTableModel : ListTableModel<WorkspaceAgentListModel>(
893893

894894
private class WorkspaceVersionColumnInfo(columnName: String) : ColumnInfo<WorkspaceAgentListModel, String>(columnName) {
895895
override fun valueOf(workspace: WorkspaceAgentListModel?): String? {
896-
return workspace?.status?.label
896+
return if (workspace == null) {
897+
"Unknown"
898+
} else if (workspace.workspace.outdated) {
899+
"Outdated"
900+
} else {
901+
"Up to date"
902+
}
897903
}
898904

899905
override fun getRenderer(item: WorkspaceAgentListModel?): TableCellRenderer {

0 commit comments

Comments
 (0)
Please sign in to comment.