We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 734775c commit 97fe930Copy full SHA for 97fe930
site/src/components/Workspace/Workspace.tsx
@@ -200,16 +200,18 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
200
</span>
201
</Stack>
202
203
- <div>
204
- <Button
205
- onClick={handleBuildRetry}
206
- startIcon={<RefreshOutlined />}
207
- size="small"
208
- variant="outlined"
209
- >
210
- Try again in debug mode
211
- </Button>
212
- </div>
+ {canUpdateWorkspace && (
+ <div>
+ <Button
+ onClick={handleBuildRetry}
+ startIcon={<RefreshOutlined />}
+ size="small"
+ variant="outlined"
+ >
+ Try again in debug mode
+ </Button>
213
+ </div>
214
+ )}
215
216
</AlertBanner>
217
<WorkspaceBuildLogs logs={failedBuildLogs} />
0 commit comments