Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdceb578

Browse files
authored
Make version column display outdated status (#438)
Before it was (probably on accident) just duplicating the status column.
1 parent5e11642 commitdceb578

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
privateclassWorkspaceVersionColumnInfo(columnName:String) : ColumnInfo<WorkspaceAgentListModel, String>(columnName) {
895895
overridefunvalueOf(workspace:WorkspaceAgentListModel?):String? {
896-
return workspace?.status?.label
896+
returnif (workspace==null) {
897+
"Unknown"
898+
}elseif (workspace.workspace.outdated) {
899+
"Outdated"
900+
}else {
901+
"Up to date"
902+
}
897903
}
898904

899905
overridefungetRenderer(item:WorkspaceAgentListModel?):TableCellRenderer {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp