terminal: wait for DOM to update the a-tag before opening it

This commit is contained in:
Johannes Zellner
2023-08-21 17:47:37 +02:00
parent bf2531337f
commit 61047e374c
+4 -3
View File
@@ -150,9 +150,10 @@ export default {
// we have to click the link to make the browser do the download
// don't know how to prevent the browsers
document.getElementById('fileDownloadLink').click();
this.downloadFileDialog.visible = false;
this.$nextTick(() => {
document.getElementById('fileDownloadLink').click();
this.downloadFileDialog.visible = false;
});
},
onUpload() {
this.$refs.fileUploader.onUploadFile('/tmp');