Skip to content

Commit dcefb12

Browse files
committed
minor
1 parent dc76f01 commit dcefb12

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ qx.Class.define("osparc.study.Conversation", {
3232
if (conversationData) {
3333
const conversation = new osparc.data.model.Conversation(conversationData);
3434
this.setConversation(conversation);
35+
this.setLabel(conversationData["name"]);
36+
} else {
37+
this.setLabel(this.tr("new"));
3538
}
3639

3740
this._setLayout(new qx.ui.layout.VBox(5));

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ qx.Class.define("osparc.study.Conversations", {
164164
let conversationPage = null;
165165
if (conversationData) {
166166
conversationPage = new osparc.study.Conversation(conversationData, studyData);
167-
conversationPage.setLabel(conversationData["name"]);
168167
const conversationId = conversationData["conversationId"];
169168
osparc.store.ConversationsProject.getInstance().addListener("conversationDeleted", e => {
170169
const data = e.getData();
@@ -173,9 +172,8 @@ qx.Class.define("osparc.study.Conversations", {
173172
}
174173
});
175174
} else {
176-
// create a temporary conversation
175+
// create a temporary conversation page
177176
conversationPage = new osparc.study.Conversation(null, studyData);
178-
conversationPage.setLabel(this.tr("new"));
179177
}
180178
return conversationPage;
181179
},

0 commit comments

Comments
 (0)