From 45083302f09b10a497cd9bbfb7e0284ef73cb7b6 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 19 Apr 2019 16:27:41 +0200 Subject: [PATCH] Update parameter_input type when changing parameter type This allows connecting/disconnecting the parameter immediately (as opposed to having to reload). This fixes https://github.com/galaxyproject/galaxy/issues/7495 (default values and optional value handling have their own issue). --- client/galaxy/scripts/mvc/workflow/workflow-node.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/galaxy/scripts/mvc/workflow/workflow-node.js b/client/galaxy/scripts/mvc/workflow/workflow-node.js index 6e8cb26c46a..20b8af6f0eb 100644 --- a/client/galaxy/scripts/mvc/workflow/workflow-node.js +++ b/client/galaxy/scripts/mvc/workflow/workflow-node.js @@ -275,6 +275,9 @@ var Node = Backbone.Model.extend({ // the output already exists, but the output formats may have changed. // Therefore we update the datatypes and destroy invalid connections. node.output_terminals[output.name].datatypes = output.extensions; + if (node.type == 'parameter_input') { + node.output_terminals[output.name].attributes.type = output.type; + } node.output_terminals[output.name].destroyInvalidConnections(); } });