Skip to content

Commit 0b7464e

Browse files
committed
update and delete
1 parent 9934c4e commit 0b7464e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,25 @@ qx.Class.define("osparc.study.Conversations", {
315315
},
316316
},
317317

318+
__deleteConversation: function(conversationData) {
319+
const conversationId = conversationData["conversationId"];
320+
const conversation = this.__getConversation(conversationId);
321+
if (conversation) {
322+
const conversationsLayout = this.getChildControl("conversations-layout");
323+
conversationsLayout.remove(conversation);
324+
this.__conversations = this.__conversations.filter(c => c !== conversation);
325+
}
326+
},
327+
328+
// it can only be renamed, not updated
329+
__updateConversation: function(conversationData) {
330+
const conversationId = conversationData["conversationId"];
331+
const conversation = this.__getConversation(conversationId);
332+
if (conversation) {
333+
conversation.renameConversation(conversationData["name"]);
334+
}
335+
},
336+
318337
destruct: function() {
319338
const socket = osparc.wrapper.WebSocket.getInstance();
320339
if (this.__wsHandlers) {

0 commit comments

Comments
 (0)