File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1150,9 +1150,20 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
11501150 }
11511151 this . _changeContext ( searchContext ) ;
11521152 } else {
1153+ let backToContext = "studiesAndFolders" ;
1154+ switch ( this . getCurrentContext ( ) ) {
1155+ case "templates" :
1156+ case "searchTemplates" :
1157+ backToContext = "templates" ;
1158+ break ;
1159+ case "publicTemplates" :
1160+ case "searchPublicTemplates" :
1161+ backToContext = "publicTemplates" ;
1162+ break ;
1163+ }
11531164 const workspaceId = this . getCurrentWorkspaceId ( ) ;
11541165 const folderId = this . getCurrentFolderId ( ) ;
1155- this . _changeContext ( "studiesAndFolders" , workspaceId , folderId ) ;
1166+ this . _changeContext ( backToContext , workspaceId , folderId ) ;
11561167 }
11571168 } ) ;
11581169 } ,
You can’t perform that action at this time.
0 commit comments