@@ -694,10 +694,16 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
694694 resolveWResponse : true
695695 } ;
696696
697- if ( "text" in requestParams ) {
698- return osparc . data . Resources . fetch ( "studies" , "getPageSearch" , params , options ) ;
697+ let request = null ;
698+ switch ( this . getCurrentContext ( ) ) {
699+ case "search" :
700+ request = osparc . data . Resources . fetch ( "studies" , "getPageSearch" , params , options ) ;
701+ break ;
702+ case "studiesAndFolders" :
703+ request = osparc . data . Resources . fetch ( "studies" , "getPage" , params , options ) ;
704+ break ;
699705 }
700- return osparc . data . Resources . fetch ( "studies" , "getPage" , params , options ) ;
706+ return request ;
701707 } ,
702708
703709 invalidateStudies : function ( ) {
@@ -892,10 +898,11 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
892898 } ) ;
893899
894900 this . _resourcesContainer . addListener ( "changeSelection" , e => {
901+ const currentContext = this . getCurrentContext ( ) ;
895902 const selection = e . getData ( ) ;
896903
897904 studiesMoveButton . set ( {
898- visibility : selection . length ? "visible" : "excluded" ,
905+ visibility : selection . length && currentContext === "studiesAndFolders" ? "visible" : "excluded" ,
899906 label : selection . length > 1 ? this . tr ( "Move selected" ) + " (" + selection . length + ")" : this . tr ( "Move" )
900907 } ) ;
901908
0 commit comments