Skip to content

Commit 335401c

Browse files
committed
clarified how to generate specs
1 parent 67abf83 commit 335401c

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

apps/app/src/client/pages/projects/workflows/components/SpecFileSelect.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,18 @@ export function SpecFileSelect({
134134
}}
135135
/>
136136
</div>
137-
<Button
138-
variant="outline"
139-
onClick={() => setModalOpen(true)}
140-
disabled={!value || disabled}
141-
title="View and edit spec file"
142-
className="h-full"
143-
>
144-
<Eye className="h-4 w-4" />
145-
<span className="hidden sm:inline ml-1.5">View Spec</span>
146-
</Button>
137+
{value && (
138+
<Button
139+
variant="outline"
140+
onClick={() => setModalOpen(true)}
141+
disabled={disabled}
142+
title="View and edit spec file"
143+
className="h-full"
144+
>
145+
<Eye className="h-4 w-4" />
146+
<span className="hidden sm:inline ml-1.5">View Spec</span>
147+
</Button>
148+
)}
147149
</div>
148150

149151
{/* Spec Preview Modal */}

0 commit comments

Comments
 (0)