Skip to content

Commit 532ccf4

Browse files
committed
rename
1 parent ee73ea9 commit 532ccf4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ qx.Class.define("osparc.study.Conversations", {
192192
this.__addConversationPage(conversation);
193193
break;
194194
case "conversation:updated":
195-
this.__updateConversation(conversation);
195+
this.__updateConversationName(conversation);
196196
break;
197197
case "conversation:deleted":
198-
this.__deleteConversation(conversation);
198+
this.__removeConversationPage(conversation);
199199
break;
200200
}
201201
}
@@ -269,9 +269,7 @@ qx.Class.define("osparc.study.Conversations", {
269269
const conversationId = conversationData["conversationId"];
270270
conversationPage = new osparc.conversation.Conversation(studyData, conversationId);
271271
conversationPage.setLabel(conversationData["name"]);
272-
conversationPage.addListener("conversationDeleted", () => {
273-
this.__deleteConversation(conversationData);
274-
});
272+
conversationPage.addListener("conversationDeleted", () => this.__removeConversationPage(conversationData));
275273
} else {
276274
// create a temporary conversation
277275
conversationPage = new osparc.conversation.Conversation(studyData);
@@ -321,7 +319,7 @@ qx.Class.define("osparc.study.Conversations", {
321319
conversationsLayout.getChildControl("bar").add(this.__newConversationButton);
322320
},
323321

324-
__deleteConversation: function(conversationData) {
322+
__removeConversationPage: function(conversationData) {
325323
const conversationId = conversationData["conversationId"];
326324
const conversation = this.__getConversation(conversationId);
327325
if (conversation) {
@@ -340,7 +338,7 @@ qx.Class.define("osparc.study.Conversations", {
340338
},
341339

342340
// it can only be renamed, not updated
343-
__updateConversation: function(conversationData) {
341+
__updateConversationName: function(conversationData) {
344342
const conversationId = conversationData["conversationId"];
345343
const conversation = this.__getConversation(conversationId);
346344
if (conversation) {

0 commit comments

Comments
 (0)