Skip to content

Commit

Permalink
Update incorrect existing token label
Browse files Browse the repository at this point in the history
This changed to automatically use the token, no confirmation.
  • Loading branch information
code-asher committed Oct 3, 2023
1 parent 792195d commit 632e840
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions src/main/kotlin/com/coder/gateway/CoderRemoteConnectionHandle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,16 @@ class CoderRemoteConnectionHandle {
}

/**
* Open a dialog for providing the token. Show any existing token so the
* user can validate it if a previous connection failed. If we are not
* retrying and the user has not checked the existing token box then open a
* browser to the auth page. If the user has checked the existing token box
* then populate the dialog with the token on disk (this will overwrite any
* Open a dialog for providing the token. Show any existing token so
* the user can validate it if a previous connection failed.
*
* If we are not retrying and the user has not checked the existing
* token box then also open a browser to the auth page.
*
* If the user has checked the existing token box then return the token
* on disk immediately and skip the dialog (this will overwrite any
* other existing token) unless this is a retry to avoid clobbering the
* token that just failed. Return the token submitted by the user.
* token that just failed.
*/
@JvmStatic
fun askToken(
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/messages/CoderGatewayBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gateway.connector.action.text=Connect to Coder
gateway.connector.view.login.documentation.action=Learn more about Coder
gateway.connector.view.login.url.label=URL:
gateway.connector.view.login.existing-token.label=Use existing token
gateway.connector.view.login.existing-token.tooltip=Checking "{0}" will prevent the browser from being launched for generating a new token after pressing "{1}". Additionally, if a token is already configured for this URL via the CLI it will appear as the default and can be used as-is or replaced.
gateway.connector.view.login.existing-token.tooltip=Checking "{0}" will prevent the browser from being launched for generating a new token after pressing "{1}". Additionally, if a token is already configured for this URL via the CLI it will automatically be used.
gateway.connector.view.login.token.dialog=Paste your token here:
gateway.connector.view.login.token.label=Session Token:
gateway.connector.view.coder.workspaces.header.text=Coder Workspaces
Expand Down

0 comments on commit 632e840

Please sign in to comment.