File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -653,17 +653,23 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
653653 const requestParams = { } ;
654654 requestParams . orderBy = JSON . stringify ( this . getOrderBy ( ) ) ;
655655
656- const filterData = this . _searchBarFilter . getFilterData ( ) ;
657- // Use the ``search`` functionality only if the user types some text
658- // tags should only be used to filter the current context (search context ot workspace/folder context)
659- if ( filterData . text ) {
660- requestParams . text = filterData . text ? encodeURIComponent ( filterData . text ) : "" ; // name, description and uuid
661- requestParams [ "tagIds" ] = filterData . tags . length ? filterData . tags . join ( "," ) : "" ;
662- return requestParams ;
656+ switch ( this . getCurrentContext ( ) ) {
657+ case "studiesAndFolders" :
658+ requestParams . workspaceId = this . getCurrentWorkspaceId ( ) ;
659+ requestParams . folderId = this . getCurrentFolderId ( ) ;
660+ break ;
661+ case "search" : {
662+ // Use the ``search`` functionality only if the user types some text
663+ // tags should only be used to filter the current context (search context ot workspace/folder context)
664+ const filterData = this . _searchBarFilter . getFilterData ( ) ;
665+ if ( filterData . text ) {
666+ requestParams . text = filterData . text ? encodeURIComponent ( filterData . text ) : "" ; // name, description and uuid
667+ requestParams [ "tagIds" ] = filterData . tags . length ? filterData . tags . join ( "," ) : "" ;
668+ }
669+ break ;
670+ }
663671 }
664672
665- requestParams . workspaceId = this . getCurrentWorkspaceId ( ) ;
666- requestParams . folderId = this . getCurrentFolderId ( ) ;
667673 return requestParams ;
668674 } ,
669675
You can’t perform that action at this time.
0 commit comments