Skip to content

Commit aa0f660

Browse files
committed
openConversation
1 parent 12c5f18 commit aa0f660

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

services/static-webserver/client/source/class/osparc/support/SupportCenter.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ qx.Class.define("osparc.support.SupportCenter", {
103103
control = new osparc.support.Conversations();
104104
control.addListener("openConversation", e => {
105105
const conversationId = e.getData();
106-
this.__openConversation(conversationId);
106+
this.openConversation(conversationId);
107107
}, this);
108108
const scroll = new qx.ui.container.Scroll();
109109
scroll.add(control);
@@ -119,8 +119,7 @@ qx.Class.define("osparc.support.SupportCenter", {
119119
center: true,
120120
alignX: "center",
121121
});
122-
// control.addListener("execute", () => this.__createConversation(), this);
123-
control.addListener("execute", () => this.__openConversation(null), this);
122+
control.addListener("execute", () => this.openConversation(null), this);
124123
this.getChildControl("conversations-layout").add(control);
125124
break;
126125
case "conversation-page":
@@ -140,7 +139,7 @@ qx.Class.define("osparc.support.SupportCenter", {
140139
this.getChildControl("stack-layout").setSelection([this.getChildControl("conversation-page")]);
141140
},
142141

143-
__openConversation: function(conversationId) {
142+
openConversation: function(conversationId) {
144143
const conversationContent = this.getChildControl("conversation-page");
145144
conversationContent.setConversationId(conversationId);
146145
this.__showConversation();
@@ -150,7 +149,7 @@ qx.Class.define("osparc.support.SupportCenter", {
150149
this.getChildControl("ask-a-question-button").setFetching(true);
151150
osparc.store.ConversationsSupport.getInstance().addConversation()
152151
.then(data => {
153-
this.__openConversation(data["conversationId"]);
152+
this.openConversation(data["conversationId"]);
154153
})
155154
.finally(() => {
156155
this.getChildControl("ask-a-question-button").setFetching(false);

0 commit comments

Comments
 (0)