File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
services/static-webserver/client/source/class/osparc/store Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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" ] ) {
You can’t perform that action at this time.
0 commit comments