Skip to content

Commit 41012f5

Browse files
committed
Add conversation
1 parent 9d63145 commit 41012f5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

services/static-webserver/client/source/class/osparc/study/Conversations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ qx.Class.define("osparc.study.Conversations", {
4848
statics: {
4949
TYPES: {
5050
PROJECT_STATIC: "PROJECT_STATIC",
51-
PROJECT_DYNAMIC: "PROJECT_DYNAMIC",
51+
PROJECT_ANNOTATION: "PROJECT_ANNOTATION",
5252
},
5353

5454
popUpInWindow: function(studyData) {

services/static-webserver/client/source/class/osparc/workbench/WorkbenchUI.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,12 @@ qx.Class.define("osparc.workbench.WorkbenchUI", {
19761976
break;
19771977
}
19781978
case annotationTypes.CONVERSATION: {
1979-
console.log("CONVERSATION", initPos);
1979+
const conversationTitle = `${x}, ${y}`;
1980+
osparc.study.Conversations.addConversation(this.getStudy().getUuid(), conversationTitle, osparc.study.Conversations.PROJECT_ANNOTATION)
1981+
.then(conversationData => {
1982+
console.log("Conversation created", conversationData);
1983+
osparc.study.Conversations.popUpInWindow(this.getStudy().serialize());
1984+
});
19801985
break;
19811986
}
19821987
}

0 commit comments

Comments
 (0)