Skip to content

Commit 0fd55e2

Browse files
committed
add label to indicate if prompt is defined by preset
1 parent b3916e2 commit 0fd55e2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

site/src/pages/TasksPage/TasksPage.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,14 @@ const TaskForm: FC<TaskFormProps> = ({ templates, onSuccess }) => {
333333
className="border border-border border-solid rounded-lg p-4"
334334
disabled={createTaskMutation.isPending}
335335
>
336-
<label htmlFor="prompt" className="sr-only">
337-
Prompt
338-
</label>
336+
{isPromptReadOnly && (
337+
<label
338+
htmlFor="prompt"
339+
className={"text-xs font-medium text-content-primary mb-2 block"}
340+
>
341+
Prompt defined by preset
342+
</label>
343+
)}
339344
<TextareaAutosize
340345
required
341346
id="prompt"

0 commit comments

Comments
 (0)