Browse Source

Minor fixes

Saoud Rizwan 1 year ago
parent
commit
c8db73fd69
2 changed files with 5 additions and 2 deletions
  1. 1 1
      src/providers/ClaudeDevProvider.ts
  2. 4 1
      webview-ui/src/components/ApiOptions.tsx

+ 1 - 1
src/providers/ClaudeDevProvider.ts

@@ -444,7 +444,7 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
 		await this.storeSecret("openRouterApiKey", apiKey)
 		await this.postStateToWebview()
 		this.claudeDev?.updateApi({ apiProvider: openrouter, openRouterApiKey: apiKey })
-		await this.postMessageToWebview({ type: "action", action: "settingsButtonTapped" })
+		// await this.postMessageToWebview({ type: "action", action: "settingsButtonTapped" }) // bad ux if user is on welcome
 	}
 
 	// Task history

+ 4 - 1
webview-ui/src/components/ApiOptions.tsx

@@ -153,7 +153,10 @@ const ApiOptions = ({ showModelOptions, apiErrorMessage }: ApiOptionsProps) => {
 						<span style={{ fontWeight: 500 }}>OpenRouter API Key</span>
 					</VSCodeTextField>
 					{!apiConfiguration?.openRouterApiKey && (
-						<VSCodeButtonLink href={getOpenRouterAuthUrl(uriScheme)} style={{ margin: "5px 0 0 0" }}>
+						<VSCodeButtonLink
+							href={getOpenRouterAuthUrl(uriScheme)}
+							style={{ margin: "5px 0 0 0" }}
+							appearance="secondary">
 							Get OpenRouter API Key
 						</VSCodeButtonLink>
 					)}