Minor fixes

This commit is contained in:
Saoud Rizwan
2024-09-07 06:31:42 -04:00
parent 04588798ef
commit c8db73fd69
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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>
)}