Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b2cb7f

Browse files
committed
improve message
1 parent be57c74 commit 4b2cb7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

site/src/pages/WorkspacePage/Workspace.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
173173

174174
const updateRequired =
175175
(workspace.template_require_active_version ||
176-
workspace.automatic_updates === "always") && workspace.outdated;
176+
workspace.automatic_updates === "always") &&
177+
workspace.outdated;
177178
const autoStartFailing = workspace.autostart_schedule && !canAutostart;
178179
const requiresManualUpdate = updateRequired && autoStartFailing;
179180

@@ -229,7 +230,7 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
229230

230231
<Margins css={styles.content}>
231232
<Stack direction="column" css={styles.firstColumnSpacer} spacing={4}>
232-
{!showAutostartBanner && workspace.outdated && (
233+
{requiresManualUpdate && workspace.outdated && (
233234
<Alert severity="info">
234235
<AlertTitle>An update is available for your workspace</AlertTitle>
235236
{updateMessage && <AlertDetail>{updateMessage}</AlertDetail>}
@@ -241,9 +242,8 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
241242
Autostart has been disabled for your workspace.
242243
</AlertTitle>
243244
<AlertDetail>
244-
A parameter mismatch has been detected between your workspace
245-
and the active template version. Manually update your workspace
246-
to reenable Autostart.
245+
Autostart is unable to automatically update your workspace.
246+
Manually update your workspace to reenable Autostart.
247247
</AlertDetail>
248248
</Alert>
249249
)}

0 commit comments

Comments
 (0)