File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
components/cylc/cylcObject Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -196,11 +196,15 @@ export default {
196
196
}
197
197
const shortList = this .primaryMutations
198
198
if (! this .expanded && shortList .length ) {
199
- return this .mutations .filter (
200
- x => shortList .includes (x .mutation .name )
201
- ).sort (
202
- (x , y ) => shortList .indexOf (x .mutation .name ) - shortList .indexOf (y .mutation .name )
203
- )
199
+ return this .mutations
200
+ // filter for shortlisted mutations
201
+ .filter (x => shortList .includes (x .mutation .name ))
202
+ // filter out mutations which aren't relevant to the workflow state
203
+ .filter (x => ! this .isDisabled (x .mutation , true ))
204
+ // sort by definition order
205
+ .sort (
206
+ (x , y ) => shortList .indexOf (x .mutation .name ) - shortList .indexOf (y .mutation .name )
207
+ )
204
208
}
205
209
return this .mutations
206
210
},
Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ export const cylcObjects = Object.freeze({
168
168
export const primaryMutations = {
169
169
[ cylcObjects . Workflow ] : [
170
170
'play' ,
171
+ 'resume' ,
171
172
'pause' ,
172
173
'stop' ,
173
174
'reload' ,
You can’t perform that action at this time.
0 commit comments