Skip to content

Commit 00638e1

Browse files
committed
fix test
1 parent c8c9dc4 commit 00638e1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

site/src/pages/WorkspacePage/WorkspaceActions/constants.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,18 @@ export const abilitiesByWorkspaceStatus = (
113113
};
114114
}
115115
case "failed": {
116+
const actions: ActionType[] = ["retry"];
117+
116118
if (canDebug) {
117-
return {
118-
actions: ["retry", "debug"],
119-
canCancel: false,
120-
canAcceptJobs: true,
121-
};
119+
actions.push("debug");
120+
}
121+
122+
if (workspace.outdated) {
123+
actions.unshift("update");
122124
}
123125

124126
return {
125-
actions: ["retry"],
127+
actions,
126128
canCancel: false,
127129
canAcceptJobs: true,
128130
};

0 commit comments

Comments
 (0)