Skip to content

Commit 874d22e

Browse files
committed
impl: swap button order
- we want "Connect" button to be highlighted - Toolbox highlights the first button in the action list
1 parent 96f6e32 commit 874d22e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Changed
6+
7+
- action buttons on the token input step were swapped to achieve better keyboard navigation
8+
59
## 0.1.3 - 2025-04-09
610

711
### Fixed

src/main/kotlin/com/coder/toolbox/views/AuthWizardPage.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ class AuthWizardPage(
5959
}
6060
actionButtons.update {
6161
listOf(
62-
Action(context.i18n.ptrl("Back"), closesPage = false, actionBlock = {
63-
tokenStep.onBack()
64-
displaySteps()
65-
}),
6662
Action(context.i18n.ptrl("Connect"), closesPage = false, actionBlock = {
6763
if (tokenStep.onNext()) {
6864
displaySteps()
6965
}
66+
}),
67+
Action(context.i18n.ptrl("Back"), closesPage = false, actionBlock = {
68+
tokenStep.onBack()
69+
displaySteps()
7070
})
7171
)
7272
}

0 commit comments

Comments
 (0)