File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
services/static-webserver/client/source/class/osparc/conversation Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,7 @@ qx.Class.define("osparc.conversation.Conversation", {
9090 const newLabel = e . getData ( ) [ "newLabel" ] ;
9191 if ( this . getConversationId ( ) ) {
9292 osparc . study . Conversations . renameConversation ( this . __studyData [ "uuid" ] , this . getConversationId ( ) , newLabel )
93- . then ( ( ) => {
94- this . getChildControl ( "button" ) . setLabel ( newLabel ) ;
95- } ) ;
93+ . then ( ( ) => this . renameConversation ( newLabel ) ) ;
9694 } else {
9795 // create new conversation first
9896 osparc . study . Conversations . addConversation ( this . __studyData [ "uuid" ] , newLabel )
@@ -147,6 +145,10 @@ qx.Class.define("osparc.conversation.Conversation", {
147145 } ) ;
148146 } ,
149147
148+ renameConversation : function ( newName ) {
149+ this . getChildControl ( "button" ) . setLabel ( newName ) ;
150+ } ,
151+
150152 __buildLayout : function ( ) {
151153 this . __messagesTitle = new qx . ui . basic . Label ( ) ;
152154 this . _add ( this . __messagesTitle ) ;
You can’t perform that action at this time.
0 commit comments