Add progress for generating "results as CSV" file to download
This commit is contained in:
		
							parent
							
								
									7d8c57170f
								
							
						
					
					
						commit
						1b7612ffb0
					
				
					 2 changed files with 101 additions and 19 deletions
				
			
		|  | @ -296,6 +296,11 @@ | |||
|   <script type="text/javascript"> | ||||
| 
 | ||||
|     ## TODO: stop checking for buefy here once we only have the one session.pop() | ||||
|     % if use_buefy and request.session.pop('{}.results_csv.generated'.format(route_prefix), False): | ||||
|         ThisPage.mounted = function() { | ||||
|             location.href = '${url('{}.results_csv_download'.format(route_prefix))}'; | ||||
|         } | ||||
|     % endif | ||||
|     % if use_buefy and request.session.pop('{}.results_xlsx.generated'.format(route_prefix), False): | ||||
|         ThisPage.mounted = function() { | ||||
|             location.href = '${url('{}.results_xlsx_download'.format(route_prefix))}'; | ||||
|  | @ -462,6 +467,13 @@ | |||
|     % endif | ||||
| 
 | ||||
|     ## TODO: can stop checking for buefy above once this legacy chunk is gone | ||||
|     % if request.session.pop('{}.results_csv.generated'.format(route_prefix), False): | ||||
|         <script type="text/javascript"> | ||||
|           $(function() { | ||||
|               location.href = '${url('{}.results_csv_download'.format(route_prefix))}'; | ||||
|           }); | ||||
|         </script> | ||||
|     % endif | ||||
|     % if request.session.pop('{}.results_xlsx.generated'.format(route_prefix), False): | ||||
|         <script type="text/javascript"> | ||||
|           $(function() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar