gui: the account or key a provider is on reads "In use" (使用中) again, not "Current" (在用) — 3df75514, which added each agent's model list and its 在用 tag for the model an agent is set to, also renamed the badge on the Accounts and keys rows from "In use" to "Current", which its message doesn't mention. The rest of magpie calls what is in use "In use": the Library's active set reads In use, the S3/WebDAV sync's chosen kind "· 使用中", so an account row reading 在用 said the same thing in other words. The rows say "In use" again; the model list's "Current" tag for a model stays. duplicate-pause.test.cjs (Chromium, WebKit, en, zh) failed on main for it. account-arrange, account-return, api-key-usage, agent-models, click-scroll, old-webkit pass; go vet, go build -tags nogui pass.
This commit is contained in:
@@ -6389,7 +6389,7 @@ function renderAccounts(a, p) {
|
||||
}
|
||||
row.append(dot, el("span", "n", l.user), el("span", "plan", accountPlan({ agent: a.agent, builtin: a.builtin, plan: l.plan })), el("span", "grow"));
|
||||
if (l.active) {
|
||||
const using = el("span", "using", l.paused ? t("Paused") : back ? t("First for now") : several ? t("First") : t("Current"));
|
||||
const using = el("span", "using", l.paused ? t("Paused") : back ? t("First for now") : several ? t("First") : t("In use"));
|
||||
if (back && !l.paused) using.title = t("{user} was nearly used up, so magpie signed {agent} in to this one; it goes back to {user} once that has room again", { user: back.user, agent: a.agentName });
|
||||
row.append(using);
|
||||
if (a.agent === "qoder" || a.agent === "qoder-cn" || l.own) {
|
||||
@@ -6853,7 +6853,7 @@ function renderKeyAccounts(p) {
|
||||
rm.onclick = () => accountAction("keys/remove", { id: p.id, ref: k.id }, t("Key removed"));
|
||||
row.append(rm);
|
||||
}
|
||||
if (k.active) row.append(el("span", "using", several ? t("First") : t("Current")));
|
||||
if (k.active) row.append(el("span", "using", several ? t("First") : t("In use")));
|
||||
else if (k.on) {
|
||||
const first = el("button", "text", t("Make first"));
|
||||
first.onclick = () => { first.classList.add("busy"); accountAction("keys/use", { id: p.id, ref: k.id }, t("{name} tries {key} first", { name: p.name, key: k.name || k.masked })); };
|
||||
|
||||
Reference in New Issue
Block a user