rjurney commented on issue #7353: unable to export dashboards - page just 
reloads
URL: 
https://github.com/apache/incubator-superset/issues/7353#issuecomment-488144830
 
 
   I played with this for over an hour. It actually does work 10-20% of the 
time. The only fix I came up with was this:
   
   ```javascript
   <script>
       window.onload = function() {
   
           // See issue #7353
           var a = document.createElement('a');
           a.href = window.location + '&action=go';
           a.download = 'dashboards.json';
           document.body.appendChild(a);
           a.click();
           document.body.removeChild(a);
   
           window.location = '{{ dashboards_url }}';    
   
       };
   </script>
   ```
   
   It does work. I'll submit a pull and see if this passes inspection.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to