Fix redirect in pull down menu for repository manager

This commit is contained in:
guerler
2017-10-04 16:30:57 -04:00
parent 1115547d6b
commit d46d45aa26
3 changed files with 3 additions and 3 deletions
@@ -88,7 +88,7 @@ class AdminToolshed(AdminGalaxy):
message, status = repository_util.check_for_updates(trans.app, trans.install_model, kwd.get('id'))
if message and status:
kwd['message'] = util.sanitize_text(message)
kwd['status'] = 'success' if status == 'ok' else 'danger'
kwd['status'] = 'success' if status in [ 'ok', 'done', 'success' ] else 'danger'
kwd['dict_format'] = True
return self.installed_repository_grid(trans, **kwd)
@@ -158,7 +158,7 @@ class InstalledRepositoryGrid(grids.Grid):
]
operations = [grids.GridOperation(label="Update tool shed status",
condition=(lambda item: not item.deleted),
allow_multiple=False)),
allow_multiple=False),
grids.GridOperation(label="Get updates",
condition=(lambda item:
not item.deleted and
@@ -20,7 +20,7 @@
<li><a class="action-button" target="galaxy_main" href="${h.url_for( controller='admin_toolshed', action='import_workflow', workflow_name=tool_shed_encode( workflow_name ), repository_id=trans.security.encode_id( repository.id ) )}">Import workflow to Galaxy</a></li>
%endif
%if repository.can_reinstall_or_activate:
<a class="action-button" href="${h.url_for( controller='admin_toolshed', action='browse_repositories', operation='activate or reinstall', id=trans.security.encode_id( repository.id ) )}">Activate or reinstall repository</a>
<a class="action-button" href="${h.url_for( controller='admin_toolshed', action='restore_repository', id=trans.security.encode_id( repository.id ) )}">Activate or reinstall repository</a>
%endif
%if in_error_state:
<a class="action-button" target="galaxy_main" href="${h.url_for( controller='admin_toolshed', action='reset_to_install', id=trans.security.encode_id( repository.id ), reset_repository=True )}">Reset to install</a>