File tree 1 file changed +8
-7
lines changed
site/src/pages/WorkspacePage 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
import AlertTitle from "@mui/material/AlertTitle" ;
2
- import Button from "@mui/material/Button" ;
3
2
import { workspaceResolveAutostart } from "api/queries/workspaceQuota" ;
4
3
import { Template , TemplateVersion , Workspace } from "api/typesGenerated" ;
5
4
import { Alert , AlertDetail , AlertProps } from "components/Alert/Alert" ;
@@ -78,12 +77,14 @@ export const WorkspaceNotifications: FC<WorkspaceNotificationsProps> = (
78
77
? `${ workspace . health . failing_agents . length } agents are unhealthy`
79
78
: `1 agent is unhealthy`
80
79
} .`,
81
- actions : [
82
- {
83
- label : "Restart" ,
84
- onClick : onRestartWorkspace ,
85
- } ,
86
- ] ,
80
+ actions : permissions . updateWorkspace
81
+ ? [
82
+ {
83
+ label : "Restart" ,
84
+ onClick : onRestartWorkspace ,
85
+ } ,
86
+ ]
87
+ : undefined ,
87
88
} ) ;
88
89
}
89
90
You can’t perform that action at this time.
0 commit comments