terminal: wait for DOM to update the a-tag before opening it
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user