diff --git a/ui/widgets/nuxeo-operation-button.js b/ui/widgets/nuxeo-operation-button.js index 66b7580f0..45bfc25d6 100644 --- a/ui/widgets/nuxeo-operation-button.js +++ b/ui/widgets/nuxeo-operation-button.js @@ -291,6 +291,10 @@ import '../actions/nuxeo-action-button-styles.js'; .match(/filename[^;=\n]*=([^;\n]*''([^;\n]*)|[^;\n]*)/) .filter((match) => !!match); const filename = decodeURI(filenameMatches[filenameMatches.length - 1]); + if (this.async) { + this._triggerDownload(filename, response.url); + return; + } response.blob().then((blob) => { const url = URL.createObjectURL(blob); this._triggerDownload(filename, url);