Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes mako for datasets grid #4163

Merged
merged 11 commits into from Jun 12, 2017

Add refresh handling

  • Loading branch information...
guerler committed Jun 7, 2017
commit b0fb99c080ad03453d66def1d3083f2aaf436e84
@@ -339,7 +339,8 @@ def url( *args, **kwargs ):
'default_filter_dict' : self.default_filter,
'advanced_search' : self.advanced_search,
'info_text' : self.info_text,
'url' : url(dict())
'url' : url(dict()),
'refresh_frames' : kwargs.get( 'refresh_frames', [] )
}
if current_item:
grid_config['current_item_id'] = current_item.id
@@ -502,7 +502,7 @@ def list( self, trans, **kwargs ):
status, message = trans.webapp.controllers['history']._list_switch( trans, histories )

# Current history changed, refresh history frame; if switching to a dataset, set hda seek.
trans.template_context['refresh_frames'] = ['history']
kwargs['refresh_frames'] = ['history']
if operation == "switch":
hda_ids = [ trans.security.encode_id( hda.id ) for hda in hdas ]
trans.template_context[ 'seek_hda_ids' ] = hda_ids
@@ -518,7 +518,7 @@ def list( self, trans, **kwargs ):
status, message = self._copy_datasets( trans, hda_ids, target_histories )

# Current history changed, refresh history frame.
trans.template_context['refresh_frames'] = ['history']
kwargs['refresh_frames'] = ['history']

# Render the list view
kwargs[ 'dict_format' ] = True
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.