diff --git a/frontend/src/components/Terminal.vue b/frontend/src/components/Terminal.vue index 79ecbacee..b9beb517c 100644 --- a/frontend/src/components/Terminal.vue +++ b/frontend/src/components/Terminal.vue @@ -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');