We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8c9dc4 commit 00638e1Copy full SHA for 00638e1
site/src/pages/WorkspacePage/WorkspaceActions/constants.ts
@@ -113,16 +113,18 @@ export const abilitiesByWorkspaceStatus = (
113
};
114
}
115
case "failed": {
116
+ const actions: ActionType[] = ["retry"];
117
+
118
if (canDebug) {
- return {
- actions: ["retry", "debug"],
119
- canCancel: false,
120
- canAcceptJobs: true,
121
- };
+ actions.push("debug");
+ }
122
+ if (workspace.outdated) {
123
+ actions.unshift("update");
124
125
126
return {
- actions: ["retry"],
127
+ actions,
128
canCancel: false,
129
canAcceptJobs: true,
130
0 commit comments