Skip to content

Commit a8b8b54

Browse files
committed
Fix time label
1 parent b719c1b commit a8b8b54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

site/src/components/WorkspaceStats/WorkspaceStats.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { Workspace } from "../../api/typesGenerated"
1212
import { Stats, StatsItem } from "components/Stats/Stats"
1313
import upperFirst from "lodash/upperFirst"
14-
import { autostopDisplay } from "util/schedule"
14+
import { autostartDisplay, autostopDisplay } from "util/schedule"
1515
import IconButton from "@material-ui/core/IconButton"
1616
import RemoveIcon from "@material-ui/icons/RemoveOutlined"
1717
import { makeStyles } from "@material-ui/core/styles"
@@ -110,7 +110,9 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({
110110
to="settings/schedule"
111111
title="Schedule settings"
112112
>
113-
{autostopDisplay(workspace)}
113+
{isWorkspaceOn(workspace)
114+
? autostopDisplay(workspace)
115+
: autostartDisplay(workspace.autostart_schedule)}
114116
</Link>
115117
<span className={styles.scheduleControls}>
116118
<IconButton

0 commit comments

Comments
 (0)