Skip to content

Commit 5a9c93f

Browse files
committed
fix: Start button is active when template is outdated
- Start button is active even though it doesn't do anything when clicked when the workspace template has updates. - resolves #31
1 parent 5fcef9b commit 5a9c93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coder/toolbox/CoderRemoteEnvironment.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class CoderRemoteEnvironment(
6868
}
6969
}
7070
},
71-
Action(context.i18n.ptrl("Start"), enabled = { wsRawStatus.canStart() }) {
71+
Action(context.i18n.ptrl("Start"), enabled = { wsRawStatus.canStart() && !workspace.outdated }) {
7272
val build = client.startWorkspace(workspace)
7373
workspace = workspace.copy(latestBuild = build)
7474
update(workspace, agent)

0 commit comments

Comments
 (0)