Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Fixed

- rendering glitches when a Workspace is stopped while SSH connection is alive
- misleading message saying that there are no workspaces rendered during manual authentication

## 0.2.0 - 2025-04-24

Expand Down
8 changes: 8 additions & 0 deletions src/main/kotlin/com/coder/toolbox/CoderRemoteProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ class CoderRemoteProvider(
// start initialization with the new settings
[email protected] = restClient
coderHeaderPage = NewEnvironmentPage(context, context.i18n.pnotr(restClient.url.toString()))
environments.showLoadingMessage()
pollJob = poll(restClient, cli)
}
}
Expand Down Expand Up @@ -326,7 +327,14 @@ class CoderRemoteProvider(
context.secrets.rememberMe = true
this.client = client
pollJob?.cancel()
environments.showLoadingMessage()
pollJob = poll(client, cli)
goToEnvironmentsPage()
}

private fun MutableStateFlow<LoadableState<List<RemoteProviderEnvironment>>>.showLoadingMessage() {
this.update {
LoadableState.Loading
}
}
}
Loading