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

Commit77f39cf

Browse files
authored
fix: Stop action should be available when workspace is out of date (#129)
Similarly to the web dashboard, `Stop` should be available alongside`Update and restart` action when a workspace is running but with atemplate out of date.
1 parentb3d0b73 commit77f39cf

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

‎CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
##Unreleased
44

5+
###Fixed
6+
7+
-`Stop` action is now available for running workspaces that have an out of date template.
8+
59
##0.3.0 - 2025-06-10
610

711
###Added

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,15 @@ class CoderRemoteEnvironment(
126126
update(workspace.copy(latestBuild= build), agent)
127127
}
128128
})
129-
}else {
130-
actions.add(Action(context.i18n.ptrl("Stop")) {
131-
context.cs.launch {
132-
tryStopSshConnection()
133-
134-
val build= client.stopWorkspace(workspace)
135-
update(workspace.copy(latestBuild= build), agent)
136-
}
137-
})
138129
}
130+
actions.add(Action(context.i18n.ptrl("Stop")) {
131+
context.cs.launch {
132+
tryStopSshConnection()
133+
134+
val build= client.stopWorkspace(workspace)
135+
update(workspace.copy(latestBuild= build), agent)
136+
}
137+
})
139138
}
140139
return actions
141140
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp