Skip to content

Commit 4dcf635

Browse files
committed
Make version column display outdated status
Before it was (probably on accident) just displaying the status again.
1 parent 5e11642 commit 4dcf635

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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+
"Out of date"
900+
} else {
901+
"Up to date"
902+
}
897903
}
898904

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

0 commit comments

Comments
 (0)