mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
history panel and api: if hda.peek is 'no peek' do not send peek through api and do not render peek in expanded hda
This commit is contained in:
@@ -221,7 +221,8 @@ def get_hda_dict( trans, history, hda, for_editing ):
|
||||
hda_dict[ 'display_types' ] = get_old_display_applications( trans, hda )
|
||||
|
||||
hda_dict[ 'visualizations' ] = hda.get_visualizations()
|
||||
hda_dict[ 'peek' ] = to_unicode( hda.display_peek() )
|
||||
if hda.peek and hda.peek != 'no peek':
|
||||
hda_dict[ 'peek' ] = to_unicode( hda.display_peek() )
|
||||
|
||||
if hda.creating_job and hda.creating_job.tool_id:
|
||||
tool_used = trans.app.toolbox.get_tool( hda.creating_job.tool_id )
|
||||
|
||||
@@ -319,12 +319,13 @@ var HDABaseView = BaseView.extend( LoggableMixin ).extend(
|
||||
*/
|
||||
//TODO: curr. pre-formatted into table on the server side - may not be ideal/flexible
|
||||
_render_peek : function(){
|
||||
if( !this.model.get( 'peek' ) ){ return null; }
|
||||
var peek = this.model.get( 'peek' );
|
||||
if( !peek ){ return null; }
|
||||
return $( '<div/>' ).append(
|
||||
$( '<pre/>' )
|
||||
.attr( 'id', 'peek' + this.model.get( 'id' ) )
|
||||
.addClass( 'peek' )
|
||||
.append( this.model.get( 'peek' ) )
|
||||
.append( peek )
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user