Skip to content

Commit 05be524

Browse files
committed
chore: improve delete confirmation dialog
The message is now english friendly and more clear. See issue #178
1 parent acd0578 commit 05be524

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Changed
66

77
- workspaces status is now refresh every time Coder Toolbox becomes visible
8+
- improved workspace delete confirmation dialog
89

910
### Fixed
1011

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ class CoderRemoteEnvironment(
277277
override val cancelButtonText: String = "Cancel"
278278
override val confirmButtonText: String = "Delete"
279279
override val message: String =
280-
if (wsRawStatus.canStop()) "Workspace will be closed and all the information will be lost, including all files, unsaved changes, historical info and usage data."
281-
else "All the information in this workspace will be lost, including all files, unsaved changes, historical info and usage data."
280+
if (wsRawStatus.canStop()) "This will close the workspace and remove all its information, including files, unsaved changes, history, and usage data."
281+
else "This will remove all information from the workspace, including files, unsaved changes, history, and usage data."
282282
override val title: String = if (wsRawStatus.canStop()) "Delete running workspace?" else "Delete workspace?"
283283
}
284284
}

0 commit comments

Comments
 (0)