swarm ui: the login button's wording is a tested function
The label that switches between log in and log in again moves next to the stored login's other wording, so it has a test.
This commit is contained in:
parent
e9ddfd61ec
commit
78e063e78c
1 changed files with 18 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ import { showToast } from "../../ui/toast/toasts.js";
|
|||
import {
|
||||
deleteMessage,
|
||||
deleteStoredLoginPath,
|
||||
loginButtonLabel,
|
||||
storedAtMs,
|
||||
storedLoginPath,
|
||||
type StoredLogin,
|
||||
|
|
@ -81,7 +82,7 @@ export function AgentClaudeLogin({ agent }: { agent: string }) {
|
|||
const loginBadge = (
|
||||
<Badge
|
||||
variant="quiet"
|
||||
value={login.stored_at === null ? "log in" : "log in again"}
|
||||
value={loginButtonLabel(login)}
|
||||
title={`log ${agent} in to claude from here`}
|
||||
onClick={() => setLoggingIn(true)}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue