Skip to content

Commit

Permalink
Update node.post_job_actions when changing post job actions
Browse files Browse the repository at this point in the history
I broke persisting pot job actions in
galaxyproject#7989.
The onchange function prevented updating the post job action.
  • Loading branch information
mvdbeek committed May 28, 2019
1 parent 5c2da64 commit c703109
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/galaxy/scripts/mvc/workflow/workflow-node.js
Expand Up @@ -66,6 +66,15 @@ var Node = Backbone.Model.extend({
output_terminal.force_datatype = datatype;
output.force_datatype = datatype;
this.nodeView.updateDataOutputView(output);
if (datatype) {
this.post_job_actions['ChangeDatatypeAction' + outputName] = {
action_arguments: {newtype: datatype},
action_type: "ChangeDatatypeAction",
output_name: outputName,
};
} else {
delete this.post_job_actions['ChangeDatatypeAction' + outputName];
}
this.markChanged();
output_terminal.destroyInvalidConnections();
},
Expand Down

0 comments on commit c703109

Please sign in to comment.