Skip to content

Commit 0f91d44

Browse files
committed
chore: consolidate retry messaging
1 parent 6005cec commit 0f91d44

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

site/src/pages/WorkspacePage/Workspace.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ export const FailedWithRetry: Story = {
172172
},
173173
},
174174
},
175-
canRetryDebugMode: true,
176175
buildLogs: <WorkspaceBuildLogsSection logs={makeFailedBuildLogs()} />,
177176
},
178177
};

site/src/pages/WorkspacePage/Workspace.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export interface WorkspaceProps {
5858
resources?: TypesGen.WorkspaceResource[];
5959
canUpdateWorkspace: boolean;
6060
updateMessage?: string;
61-
canRetryDebugMode: boolean;
6261
canChangeVersions: boolean;
6362
hideSSHButton?: boolean;
6463
hideVSCodeDesktopButton?: boolean;
@@ -97,7 +96,6 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
9796
builds,
9897
canUpdateWorkspace,
9998
updateMessage,
100-
canRetryDebugMode,
10199
canChangeVersions,
102100
workspaceErrors,
103101
hideSSHButton,
@@ -307,15 +305,9 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
307305
<Alert
308306
severity="error"
309307
actions={
310-
canRetryDebugMode && (
311-
<Button
312-
onClick={handleBuildRetry}
313-
variant="text"
314-
size="small"
315-
>
316-
Try in debug mode
317-
</Button>
318-
)
308+
<Button onClick={handleBuildRetry} variant="text" size="small">
309+
Retry
310+
</Button>
319311
}
320312
>
321313
<AlertTitle>Workspace build failed</AlertTitle>

site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ export const WorkspaceReadyPage = ({
274274
hasMoreBuilds={hasMoreBuilds}
275275
canUpdateWorkspace={canUpdateWorkspace}
276276
updateMessage={latestVersion?.message}
277-
canRetryDebugMode={canRetryDebugMode}
278277
canChangeVersions={canChangeVersions}
279278
hideSSHButton={featureVisibility["browser_only"]}
280279
hideVSCodeDesktopButton={featureVisibility["browser_only"]}

0 commit comments

Comments
 (0)