Skip to content

Commit

Permalink
Add center redirect support for operations
Browse files Browse the repository at this point in the history
Redirect updates request to center panel

Remove center redirect
  • Loading branch information
guerler committed Oct 6, 2017
1 parent f1d53ef commit 31fd8a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/galaxy/web/framework/helpers/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ def url(*args, **kwargs):
for operation in self.operations:
item_dict['operation_config'][operation.label] = {
'allowed' : operation.allowed(item),
'url_args' : url(**operation.get_url_args(item))
'url_args' : url(**operation.get_url_args(item)),
'target' : operation.target
}
grid_config['items'].append(item_dict)
trans.log_action(trans.get_user(), text_type("grid.view"), context, params)
Expand Down
2 changes: 1 addition & 1 deletion lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def get_accepted_filters(self):
tool_shed_install.ToolShedRepository.installation_status.ERROR,
tool_shed_install.ToolShedRepository.installation_status.NEW]),
allow_multiple=False,
target="center",
url_args=dict(controller='admin_toolshed',
action='check_for_updates')),
grids.GridOperation(label="Install latest revision",
Expand All @@ -188,7 +189,6 @@ def get_accepted_filters(self):
not item.deleted and
item.status != tool_shed_install.ToolShedRepository.installation_status.NEW),
allow_multiple=True,
target='top',
url_args=dict(controller='admin_toolshed',
action='deactivate_or_uninstall_repository')),
grids.GridOperation(label="Reset to install",
Expand Down

0 comments on commit 31fd8a3

Please sign in to comment.