Skip to content

Commit dceb578

Browse files
authored
Make version column display outdated status (#438)
Before it was (probably on accident) just duplicating the status column.
1 parent 5e11642 commit dceb578

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy