Skip to content

Commit dbd4b5f

Browse files
committed
Show deployment error once
1 parent 10b8083 commit dbd4b5f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/kotlin/com/coder/gateway/views/CoderGatewayRecentWorkspaceConnectionsView.kt

+6-4
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,12 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
244244
},
245245
)
246246
}.topGap(gap)
247-
row {
248-
// There must be a way to make this properly wrap?
249-
label("<html><body style='width:350px;'>" + status.third + "</html>").applyToComponent {
250-
foreground = status.second
247+
if (gap == TopGap.NONE) { // Show the error once at the top.
248+
row {
249+
// There must be a way to make this properly wrap?
250+
label("<html><body style='width:350px;'>" + status.third + "</html>").applyToComponent {
251+
foreground = status.second
252+
}
251253
}
252254
}
253255
connections.forEach { workspaceProjectIDE ->

0 commit comments

Comments
 (0)