Skip to content

Commit e5d091f

Browse files
committed
renameConversation
1 parent 1983b3c commit e5d091f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ qx.Class.define("osparc.support.SupportCenter", {
4343

4444
statics: {
4545
WINDOW_WIDTH: 430,
46-
REQUEST_CALL_MESSAGE: qx.locale.Manager.tr("Dear Support,\nI would like to make an appointment for a support call."),
46+
REQUEST_CALL_MESSAGE: "Dear Support,\nI would like to make an appointment for a support call.",
4747

4848
getMaxHeight: function() {
4949
// height: max 80% of screen, or 600px
@@ -173,6 +173,14 @@ qx.Class.define("osparc.support.SupportCenter", {
173173
const conversationPage = this.getChildControl("conversation-page");
174174
conversationPage.setConversation(null);
175175
this.__showConversation();
176+
conversationPage.addListenerOnce("changeConversation", e => {
177+
const conversation = e.getData();
178+
// update conversation name and patch extra_context
179+
conversation.renameConversation("Book a call");
180+
conversation.patchExtraContext({
181+
"appointment": "requested"
182+
});
183+
});
176184
conversationPage.postMessage(osparc.support.SupportCenter.REQUEST_CALL_MESSAGE);
177185
},
178186
}

0 commit comments

Comments
 (0)