File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
services/static-webserver/client/source/class/osparc/study Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments