File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
services/static-webserver/client/source/class/osparc/support Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -223,21 +223,18 @@ qx.Class.define("osparc.support.Conversation", {
223223 } ,
224224
225225 __reloadMessages : function ( removeMessages = true ) {
226- const messagesContainer = this . getChildControl ( "messages-container" ) ;
227226 const loadMoreMessages = this . getChildControl ( "load-more-button" ) ;
228227 if ( this . getConversation ( ) === null ) {
229- messagesContainer . hide ( ) ;
230228 loadMoreMessages . hide ( ) ;
231229 return ;
232230 }
233231
234- messagesContainer . show ( ) ;
235232 loadMoreMessages . show ( ) ;
236233 loadMoreMessages . setFetching ( true ) ;
237234
238235 if ( removeMessages ) {
239236 this . __messages = [ ] ;
240- messagesContainer . removeAll ( ) ;
237+ this . getChildControl ( "messages-container" ) . removeAll ( ) ;
241238 }
242239
243240 this . getConversation ( ) . getNextMessages ( )
Original file line number Diff line number Diff line change @@ -151,20 +151,25 @@ qx.Class.define("osparc.support.ConversationPage", {
151151 this . setConversation ( null ) ;
152152
153153 const title = this . getChildControl ( "conversation-title" ) ;
154+ const conversationContent = this . getChildControl ( "conversation-content" ) ;
155+ let msg = "Hi " + osparc . auth . Data . getInstance ( ) . getUserName ( ) + "," ;
154156 switch ( type ) {
155157 case "askAQuestion" :
156158 title . setValue ( this . tr ( "Ask a Question" ) ) ;
159+ msg += "\nHave a question or feedback?\nWe are happy to assist!" ;
157160 break ;
158161 case "bookACall" :
159162 title . setValue ( this . tr ( "Book a Call" ) ) ;
163+ msg += "\nLet us know what your availability is and we will get back to you shortly to schedule a meeting." ;
160164 break ;
161165 case "reportOEC" :
162166 title . setValue ( this . tr ( "Report an Error" ) ) ;
167+ msg = null ;
163168 break ;
164169 }
165-
166- const conversationContent = this . getChildControl ( "conversation-content" ) ;
167- conversationContent . addSystemMessage ( "Hello world" ) ;
170+ if ( msg ) {
171+ conversationContent . addSystemMessage ( msg ) ;
172+ }
168173 } ,
169174
170175 __applyConversation : function ( conversation ) {
You can’t perform that action at this time.
0 commit comments