Skip to content

Commit 58b5ced

Browse files
committed
EG msg
1 parent a3ababd commit 58b5ced

File tree

1 file changed

+6
-1
lines changed
  • services/static-webserver/client/source/class/osparc/store

1 file changed

+6
-1
lines changed

services/static-webserver/client/source/class/osparc/store/Data.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,19 @@ qx.Class.define("osparc.store.Data", {
136136
},
137137

138138
__getAllItems: async function(locationId, path, cursor, allItems = []) {
139+
if (allItems.length >= 10000) {
140+
const msg = this.tr("Oops... more than 10.000 files to be listed here. Maybe it's time to make a folder :).");
141+
osparc.FlashMessenger.logAs(msg, "WARNING");
142+
return allItems;
143+
}
139144
const params = {
140145
url: {
141146
locationId,
142147
path,
143148
}
144149
};
145150
if (cursor) {
146-
params["url"]["cursor"] = cursor
151+
params["url"]["cursor"] = cursor;
147152
}
148153
const pagResp = await osparc.data.Resources.fetch("storagePaths", cursor ? "getPathsPage" : "getPaths", params);
149154
if (pagResp["items"]) {

0 commit comments

Comments
 (0)