We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67abf83 commit 335401cCopy full SHA for 335401c
1 file changed
apps/app/src/client/pages/projects/workflows/components/SpecFileSelect.tsx
@@ -134,16 +134,18 @@ export function SpecFileSelect({
134
}}
135
/>
136
</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>
+{value && (
+ <Button
+ variant="outline"
+ onClick={() => setModalOpen(true)}
+ disabled={disabled}
+ title="View and edit spec file"
+ className="h-full"
+ >
+ <Eye className="h-4 w-4" />
+ <span className="hidden sm:inline ml-1.5">View Spec</span>
147
+ </Button>
148
+ )}
149
150
151
{/* Spec Preview Modal */}
0 commit comments