mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix(dashboard): persist Discord toolsets to Discord platform
This commit is contained in:
parent
c80b244b52
commit
3ffd8b3da0
6 changed files with 105 additions and 19 deletions
|
|
@ -211,6 +211,7 @@ export function ToolsetConfigDrawer({ toolset, profile, onClose, onChanged }: Pr
|
|||
};
|
||||
|
||||
const labelText = toolset.label?.trim() || toolset.name;
|
||||
const platformText = toolset.platform_label?.trim() || toolset.platform;
|
||||
|
||||
return createPortal(
|
||||
<div
|
||||
|
|
@ -253,10 +254,12 @@ export function ToolsetConfigDrawer({ toolset, profile, onClose, onChanged }: Pr
|
|||
checked={enabled}
|
||||
onCheckedChange={(v) => void handleToggle(v)}
|
||||
disabled={toggling}
|
||||
aria-label="Enable toolset"
|
||||
aria-label={`Enable toolset for ${platformText}`}
|
||||
/>
|
||||
<span className="text-xs text-muted-foreground">
|
||||
{enabled ? "Enabled for the agent" : "Disabled"}
|
||||
{enabled
|
||||
? `Enabled for ${platformText}`
|
||||
: `Disabled for ${platformText}`}
|
||||
</span>
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue