Make order URL/Prompt consistent for TaskV2 (#3758)
This commit is contained in:
committed by
GitHub
parent
20e0a25ede
commit
2843528a9c
@@ -84,6 +84,19 @@ function Taskv2Node({ id, data, type }: NodeProps<Taskv2Node>) {
|
||||
type="task_v2" // sic: the naming is not consistent
|
||||
/>
|
||||
<div className="space-y-4">
|
||||
<div className="space-y-2">
|
||||
<Label className="text-xs text-slate-300">URL</Label>
|
||||
<WorkflowBlockInputTextarea
|
||||
canWriteTitle={true}
|
||||
nodeId={id}
|
||||
onChange={(value) => {
|
||||
update({ url: value });
|
||||
}}
|
||||
value={data.url}
|
||||
placeholder={placeholders[type]["url"]}
|
||||
className="nopan text-xs"
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<div className="flex justify-between">
|
||||
<Label className="text-xs text-slate-300">Prompt</Label>
|
||||
@@ -103,19 +116,6 @@ function Taskv2Node({ id, data, type }: NodeProps<Taskv2Node>) {
|
||||
className="nopan text-xs"
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<Label className="text-xs text-slate-300">URL</Label>
|
||||
<WorkflowBlockInputTextarea
|
||||
canWriteTitle={true}
|
||||
nodeId={id}
|
||||
onChange={(value) => {
|
||||
update({ url: value });
|
||||
}}
|
||||
value={data.url}
|
||||
placeholder={placeholders[type]["url"]}
|
||||
className="nopan text-xs"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<Separator />
|
||||
<Accordion
|
||||
|
||||
Reference in New Issue
Block a user