Skip to content

Commit 97fe930

Browse files
committed
Only show try again if user can update it
1 parent 734775c commit 97fe930

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

site/src/components/Workspace/Workspace.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,18 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
200200
</span>
201201
</Stack>
202202

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>
203+
{canUpdateWorkspace && (
204+
<div>
205+
<Button
206+
onClick={handleBuildRetry}
207+
startIcon={<RefreshOutlined />}
208+
size="small"
209+
variant="outlined"
210+
>
211+
Try again in debug mode
212+
</Button>
213+
</div>
214+
)}
213215
</Stack>
214216
</AlertBanner>
215217
<WorkspaceBuildLogs logs={failedBuildLogs} />

0 commit comments

Comments
 (0)