Fix annotation display for data inputs

This commit is contained in:
guerler
2017-02-20 12:10:11 -05:00
parent 851f08cb00
commit f1f6bf6c3a
3 changed files with 9 additions and 5 deletions
@@ -39,12 +39,16 @@ define([ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view'
_.each( this.model.get( 'steps' ), function( step, i ) {
Galaxy.emit.debug( 'tool-form-composite::initialize()', i + ' : Preparing workflow step.' );
var icon = WorkflowIcons[step.step_type];
var description = step.description;
if ( step.annotation ) {
description = ' - ' + step.annotation;
}
step = Utils.merge( {
index : i,
name : step.name,
name : _.escape( step.name ),
icon : icon || '',
help : null,
description : step.annotation && ' - ' + step.annotation || step.description,
description : _.escape( description || '' ),
citations : null,
collapsible : true,
collapsed : i > 0 && !self._isDataStep( step ),
@@ -275,7 +279,7 @@ define([ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view'
var is_simple_input = ([ 'data_input', 'data_collection_input' ]).indexOf( step.step_type ) != -1;
_.each( step.inputs, function( input ) { input.flavor = 'module'; input.hide_label = is_simple_input; } );
form = new Form( Utils.merge({
title : '<b>' + step.name + '</b>',
title : '<b>' + step.name + '</b>' + step.description,
onchange : function() { _.each( self.links[ step.index ], function( link ) { self._refreshStep( link ) } ) },
inputs : step.inputs && step.inputs.length > 0 ? step.inputs : [ { type: 'hidden', name: 'No options available.', ignore: null } ]
}, step ) );
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long