minor fixes

This commit is contained in:
Eng. Elias
2024-03-24 14:54:17 +04:00
parent f3ff09bb4e
commit 24fab13a30
3 changed files with 8 additions and 4 deletions

View File

@@ -212,6 +212,8 @@ export default function AgentModal(props: {
{isEdit ? ( {isEdit ? (
<Textarea <Textarea
label="Backstory" label="Backstory"
color="blue"
className="text-white"
resize={true} resize={true}
value={tempAgent?.backstory || ""} value={tempAgent?.backstory || ""}
onChange={(event) => { onChange={(event) => {
@@ -271,7 +273,7 @@ export default function AgentModal(props: {
<Switch <Switch
crossOrigin={undefined} crossOrigin={undefined}
color="blue" color="blue"
defaultChecked={tempAgent?.allowDelegation} checked={agent?.allowDelegation}
disabled={true} disabled={true}
/> />
)} )}
@@ -294,7 +296,7 @@ export default function AgentModal(props: {
<Switch <Switch
crossOrigin={undefined} crossOrigin={undefined}
color="blue" color="blue"
defaultChecked={tempAgent?.verbose} checked={agent?.verbose}
disabled={true} disabled={true}
/> />
)} )}
@@ -317,7 +319,7 @@ export default function AgentModal(props: {
<Switch <Switch
crossOrigin={undefined} crossOrigin={undefined}
color="blue" color="blue"
defaultChecked={tempAgent?.memory} checked={agent?.memory}
disabled={true} disabled={true}
/> />
)} )}

View File

@@ -111,6 +111,7 @@ function NewAgentModal(props: {
<Textarea <Textarea
label="Backstory" label="Backstory"
color="blue" color="blue"
className="text-white"
resize={true} resize={true}
value={tempAgent?.backstory || ""} value={tempAgent?.backstory || ""}
onChange={(event) => { onChange={(event) => {

View File

@@ -62,6 +62,7 @@ export const CREATE_AGENT = gql`
tools tools
allowDelegation allowDelegation
verbose verbose
memory
image image
} }
} }
@@ -220,7 +221,7 @@ export const UPDATE_MISSION = gql`
$id: Int! $id: Int!
$name: String $name: String
$crew: [Int!] $crew: [Int!]
$tasks: [Task!] $tasks: [TaskInput!]
$verbose: Boolean $verbose: Boolean
$process: MissionProcess $process: MissionProcess
) { ) {