Skip to content

Commit fe3b046

Browse files
committed
user friendly
1 parent 74d330f commit fe3b046

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,19 @@ qx.Class.define("osparc.support.BookACallTopicSelector", {
174174
__nextPressed: function() {
175175
const topicData = {};
176176
if (this.getChildControl("generic-intro-button").getValue()) {
177-
topicData["topic"] = "specific-topic";
177+
topicData["topic"] = "Generic Introduction";
178178
} else if (this.getChildControl("specific-intro-button").getValue()) {
179-
topicData["topic"] = "specific-intro";
179+
topicData["topic"] = "Specific Introduction";
180180
const selectBox = this.getChildControl("specific-intro-select-box");
181181
const selectedItem = selectBox.getSelection()[0];
182182
topicData["extraInfo"] = selectedItem ? selectedItem.getModel() : "";
183183
} else if (this.getChildControl("help-with-project-button").getValue()) {
184-
topicData["topic"] = "help-with-project";
184+
topicData["topic"] = "Help with Project";
185185
if (this.getChildControl("share-project-checkbox").getValue()) {
186186
topicData["share-project"] = true;
187187
}
188188
} else if (this.getChildControl("specific-topic-button").getValue()) {
189-
topicData["topic"] = "specific-topic";
189+
topicData["topic"] = "Specific Topic";
190190
topicData["extraInfo"] = this.getChildControl("specific-topic-textfield").getValue();
191191
}
192192

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,15 @@ qx.Class.define("osparc.support.Conversation", {
9797
this.setConversation(newConversation);
9898
if (isBookACall) {
9999
// add a first message
100-
const msg = `
101-
Book a Call details:
102-
- Topic: ${this.__bookACallInfo["topic"]}
103-
`;
104-
if ("extraInfo" in this.__bookACallInfo) {
105-
msg += `\n- Extra Info: ${this.__bookACallInfo["extraInfo"]}`;
100+
let msg = "Book a Call";
101+
if (this.__bookACallInfo) {
102+
msg += `\n- Topic: ${this.__bookACallInfo["topic"]}`;
103+
if ("extraInfo" in this.__bookACallInfo) {
104+
msg += `\n- Extra Info: ${this.__bookACallInfo["extraInfo"]}`;
105+
}
106106
}
107107
prePostMessagePromise = this.__postMessage(msg);
108+
this.__bookACallInfo = null;
108109
// rename the conversation
109110
newConversation.renameConversation("Book a Call");
110111
}

0 commit comments

Comments
 (0)