mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix for reloading tools that have non-standard tool_ids/versions.
This commit is contained in:
@@ -98,7 +98,7 @@ class Admin( object ):
|
||||
toolbox = self.app.toolbox
|
||||
tool_id = None
|
||||
if params.get( 'reload_tool_button', False ):
|
||||
tool_id = params.get('tool_id', None)
|
||||
tool_id = kwd.get( 'tool_id', None )
|
||||
galaxy.queue_worker.send_control_task(trans.app, 'reload_tool', noop_self=True, kwargs={'tool_id': tool_id} )
|
||||
message, status = trans.app.toolbox.reload_tool_by_id( tool_id)
|
||||
return trans.fill_template( '/admin/reload_tool.mako',
|
||||
|
||||
@@ -31,7 +31,7 @@ $().ready(function() {
|
||||
<select name="tool_id">
|
||||
%for val in toolbox.tool_panel_contents( trans ):
|
||||
%if isinstance( val, Tool ):
|
||||
<option value="${val.id}">${val.name|h}</option>
|
||||
<option value="${val.id|h}">${val.name|h}</option>
|
||||
%elif isinstance( val, ToolSection ):
|
||||
<optgroup label="${val.name|h}">
|
||||
<% section = val %>
|
||||
@@ -41,7 +41,7 @@ $().ready(function() {
|
||||
%if section_val.id == tool_id:
|
||||
<% selected_str = " selected=\"selected\"" %>
|
||||
%endif
|
||||
<option value="${section_val.id}"${selected_str}>${section_val.name|h}</option>
|
||||
<option value="${section_val.id|h}"${selected_str}>${section_val.name|h}</option>
|
||||
%endif
|
||||
%endfor
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user