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

fix: go to previous step when connection fails#77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fioan89 merged 2 commits intomainfromfix-go-to-previous-step-when-connection-fails
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes fromall 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
4 changes: 4 additions & 0 deletionsCHANGELOG.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,10 @@

- action buttons on the token input step were swapped to achieve better keyboard navigation

### Fixed

- authorization wizard automatically goes to a previous screen when an error is encountered during connection to Coder deployment

## 0.1.3 - 2025-04-09

### Fixed
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -22,7 +22,7 @@ class AuthWizardPage(

private val signInStep = SignInStep(context)
private val tokenStep = TokenStep(context)
private val connectStep = ConnectStep(context, shouldAutoLogin, this::notify, onConnect)
private val connectStep = ConnectStep(context, shouldAutoLogin, this::notify,this::displaySteps,onConnect)


/**
Expand Down
5 changes: 5 additions & 0 deletionssrc/main/kotlin/com/coder/toolbox/views/ConnectStep.kt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@ class ConnectStep(
private val context: CoderToolboxContext,
private val shouldAutoLogin: StateFlow<Boolean>,
private val notify: (String, Throwable) -> Unit,
private val refreshWizard: () -> Unit,
private val onConnect: (
client: CoderRestClient,
cli: CoderCLIManager,
Expand DownExpand Up@@ -102,9 +103,13 @@ class ConnectStep(
} catch (ex: CancellationException) {
if (ex.message != USER_HIT_THE_BACK_BUTTON) {
notify("Connection to ${url.host} was configured", ex)
onBack()
refreshWizard()
}
} catch (ex: Exception) {
notify("Failed to configure ${url.host}", ex)
onBack()
refreshWizard()
}
}
}
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp