Skip to content

Commit 6e97d4d

Browse files
committed
backToContext
1 parent 7cd4fa0 commit 6e97d4d

File tree

1 file changed

+12
-1
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+12
-1
lines changed

services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)