mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Update Save Control
This commit is contained in:
@@ -92,7 +92,7 @@ export const SaveControl = ({
|
||||
size="icon"
|
||||
data-id="save-control-popover-trigger"
|
||||
>
|
||||
<IconSave />
|
||||
<IconSave className="dark:text-gray-300" />
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
</TooltipTrigger>
|
||||
@@ -104,10 +104,10 @@ export const SaveControl = ({
|
||||
align="start"
|
||||
data-id="save-control-popover-content"
|
||||
>
|
||||
<Card className="border-none shadow-none">
|
||||
<Card className="border-none shadow-none dark:bg-slate-900">
|
||||
<CardContent className="p-4">
|
||||
<div className="grid gap-3">
|
||||
<Label htmlFor="name">Name</Label>
|
||||
<Label htmlFor="name" className="dark:text-gray-300">Name</Label>
|
||||
<Input
|
||||
id="name"
|
||||
placeholder="Enter your agent name"
|
||||
@@ -116,7 +116,7 @@ export const SaveControl = ({
|
||||
onChange={(e) => onNameChange(e.target.value)}
|
||||
data-id="save-control-name-input"
|
||||
/>
|
||||
<Label htmlFor="description">Description</Label>
|
||||
<Label htmlFor="description" className="dark:text-gray-300">Description</Label>
|
||||
<Input
|
||||
id="description"
|
||||
placeholder="Your agent description"
|
||||
@@ -127,7 +127,7 @@ export const SaveControl = ({
|
||||
/>
|
||||
{agentMeta?.version && (
|
||||
<>
|
||||
<Label htmlFor="version">Version</Label>
|
||||
<Label htmlFor="version" className="dark:text-gray-300">Version</Label>
|
||||
<Input
|
||||
id="version"
|
||||
placeholder="Version"
|
||||
@@ -141,25 +141,12 @@ export const SaveControl = ({
|
||||
</CardContent>
|
||||
<CardFooter className="flex flex-col items-stretch gap-2">
|
||||
<Button
|
||||
className="w-full"
|
||||
className="w-full dark:hover:bg-slate-800 dark:bg-slate-700 dark:text-slate-100"
|
||||
onClick={handleSave}
|
||||
data-id="save-control-save-agent"
|
||||
>
|
||||
Save {getType()}
|
||||
</Button>
|
||||
{!agentMeta && (
|
||||
<Button
|
||||
variant="secondary"
|
||||
className="w-full"
|
||||
data-id="save-control-template-button"
|
||||
onClick={() => {
|
||||
isTemplate = true;
|
||||
handleSave();
|
||||
}}
|
||||
>
|
||||
Save as Template
|
||||
</Button>
|
||||
)}
|
||||
</CardFooter>
|
||||
</Card>
|
||||
</PopoverContent>
|
||||
|
||||
Reference in New Issue
Block a user