Hello All,
I have a flow that generates a ui-table
of files available in a directory. When a user clicks on the file in the table, it is sent into a ui-template
node that uses window.open
to navigate to the page where a file download is triggered. This works very well but there is a noticeable "flash" when the download starts from the window opening and closing quickly. Even though it is definitely nitpicky...I'm trying to remove it.
I've used window.location.href and this gives the functionality I want, but it causes the dashboard to disconnect and the page needs to be reloaded. Which makes sense as the href command is changing the location. I've tried several other solutions I've found by googling but they all result in either the brief flash, or the disconnect.
Is there another way to accomplish what I'm trying to do? Perhaps there a better way to initiate a download from Node-RED's local file system to the dashboard user's system, that still allows me to use the aesthetics of the ui-table?
I'm using the majority of This Example to serve the file for download.