File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
services/static-webserver/client/source/class/osparc/study Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ qx.Class.define("osparc.study.Conversations", {
4646 } ,
4747
4848 statics : {
49+ TYPES : {
50+ PROJECT_STATIC : "PROJECT_STATIC" ,
51+ PROJECT_DYNAMIC : "PROJECT_DYNAMIC" ,
52+ } ,
53+
4954 popUpInWindow : function ( studyData ) {
5055 const conversations = new osparc . study . Conversations ( studyData ) ;
5156 const title = qx . locale . Manager . tr ( "Conversations" ) ;
@@ -58,14 +63,14 @@ qx.Class.define("osparc.study.Conversations", {
5863 return win ;
5964 } ,
6065
61- addConversation : function ( studyId , name = "new 1" ) {
66+ addConversation : function ( studyId , name = "new 1" , type = this . TYPES . PROJECT_STATIC ) {
6267 const params = {
6368 url : {
6469 studyId,
6570 } ,
6671 data : {
6772 name,
68- " type" : "PROJECT_STATIC" ,
73+ type,
6974 }
7075 } ;
7176 return osparc . data . Resources . fetch ( "conversations" , "addConversation" , params )
You can’t perform that action at this time.
0 commit comments