Skip to content

Commit a9bedcb

Browse files
committed
Load workspaces after downloading CLI
Since you cannot interact with the list without a CLI (and there is now a higher chance something can go wrong since the user can customize the source and destination) we should avoid showing them until the CLI is good to go.
1 parent e25be3b commit a9bedcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,16 +461,16 @@ class CoderWorkspacesStepView(val setNextButtonEnabled: (Boolean) -> Unit) : Cod
461461
appPropertiesService.setValue(CODER_URL_KEY, deploymentURL.toString())
462462
appPropertiesService.setValue(SESSION_TOKEN, token)
463463

464-
this.indicator.text = "Retrieving workspaces..."
465-
loadWorkspaces()
466-
467464
this.indicator.text = "Downloading Coder CLI..."
468465
val cliManager = CoderCLIManager(deploymentURL)
469466
cliManager.downloadCLI()
470467

471468
this.indicator.text = "Authenticating Coder CLI..."
472469
cliManager.login(token)
473470

471+
this.indicator.text = "Retrieving workspaces..."
472+
loadWorkspaces()
473+
474474
updateWorkspaceActions()
475475
triggerWorkspacePolling(false)
476476
} catch (e: AuthenticationResponseException) {

0 commit comments

Comments
 (0)