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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CoderGatewayConnectorWizardView : BorderLayoutPanel(), Disposable {
private fun setupWizard() {
background = WelcomeScreenUIManager.getMainAssociatedComponentBackground()

registerStep(CoderAuthStepView())
registerStep(CoderAuthStepView { next() })
registerStep(CoderWorkspacesStepView())
registerStep(CoderLocateRemoteProjectStepView())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import kotlinx.coroutines.cancel
import org.zeroturnaround.exec.ProcessExecutor
import java.awt.Dimension

class CoderAuthStepView : CoderWorkspacesWizardStep, Disposable {
class CoderAuthStepView(private val nextAction: () -> Unit) : CoderWorkspacesWizardStep, Disposable {
private val cs = CoroutineScope(Dispatchers.Main)
private var model = CoderWorkspacesWizardModel()
private val coderClient: CoderRestClientService = ApplicationManager.getApplication().getService(CoderRestClientService::class.java)
Expand All @@ -59,7 +59,11 @@ class CoderAuthStepView : CoderWorkspacesWizardStep, Disposable {
browserLink(CoderGatewayBundle.message("gateway.connector.view.login.documentation.action"), "https://coder.com/docs/coder/latest/workspaces")
}.bottomGap(BottomGap.MEDIUM)
row(CoderGatewayBundle.message("gateway.connector.view.login.url.label")) {
textField().resizableColumn().horizontalAlign(HorizontalAlign.FILL).gap(RightGap.SMALL).bindText(model::coderURL)
textField().resizableColumn().horizontalAlign(HorizontalAlign.FILL).gap(RightGap.SMALL).bindText(model::coderURL).applyToComponent {
addActionListener {
nextAction()
}
}
cell()
}
}
Expand Down