File tree 1 file changed +4
-2
lines changed
site/src/components/WorkspaceStats 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
import { Workspace } from "../../api/typesGenerated"
12
12
import { Stats , StatsItem } from "components/Stats/Stats"
13
13
import upperFirst from "lodash/upperFirst"
14
- import { autostopDisplay } from "util/schedule"
14
+ import { autostartDisplay , autostopDisplay } from "util/schedule"
15
15
import IconButton from "@material-ui/core/IconButton"
16
16
import RemoveIcon from "@material-ui/icons/RemoveOutlined"
17
17
import { makeStyles } from "@material-ui/core/styles"
@@ -110,7 +110,9 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({
110
110
to = "settings/schedule"
111
111
title = "Schedule settings"
112
112
>
113
- { autostopDisplay ( workspace ) }
113
+ { isWorkspaceOn ( workspace )
114
+ ? autostopDisplay ( workspace )
115
+ : autostartDisplay ( workspace . autostart_schedule ) }
114
116
</ Link >
115
117
< span className = { styles . scheduleControls } >
116
118
< IconButton
You can’t perform that action at this time.
0 commit comments