Skip to content

Commit 8de8b2c

Browse files
committed
minor
1 parent c501b3a commit 8de8b2c

File tree

1 file changed

+5
-3
lines changed
  • services/static-webserver/client/source/class/osparc/conversation

1 file changed

+5
-3
lines changed

services/static-webserver/client/source/class/osparc/conversation/Conversation.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)