Skip to content

Commit cbd15dc

Browse files
committed
isMultiDownloadEnabled
1 parent 9a87d78 commit cbd15dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/static-webserver/client/source/class/osparc/file/FileLabelWithActions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,11 @@ qx.Class.define("osparc.file.FileLabelWithActions", {
143143
},
144144

145145
__retrieveURLAndDownloadSelected: function() {
146+
const isMultiDownloadEnabled = osparc.utils.DisabledPlugins.isMultiDownloadEnabled();
146147
if (this.isMultiSelect()) {
147148
if (this.__selection.length === 1 && osparc.file.FilesTree.isFile(this.__selection[0])) {
148149
this.__retrieveURLAndDownloadFile(this.__selection[0]);
149-
} else if (this.__selection.length > 1) {
150+
} else if (this.__selection.length > 1 && isMultiDownloadEnabled) {
150151
const paths = this.__selection.map(item => item.getPath());
151152
this.__retrieveURLAndExportData(paths);
152153
}
@@ -155,7 +156,7 @@ qx.Class.define("osparc.file.FileLabelWithActions", {
155156
if (selection) {
156157
if (osparc.file.FilesTree.isFile(selection)) {
157158
this.__retrieveURLAndDownloadFile(selection);
158-
} else {
159+
} else if (isMultiDownloadEnabled) {
159160
const paths = [selection.getPath()];
160161
this.__retrieveURLAndExportData(paths);
161162
}

0 commit comments

Comments
 (0)