@@ -148,13 +148,23 @@ qx.Class.define("osparc.support.ConversationPage", {
148148 this . getChildControl ( "buttons-layout" ) . addAt ( control , 4 ) ;
149149 break ;
150150 }
151+ case "main-stack" :
152+ control = new qx . ui . container . Stack ( ) ;
153+ this . _add ( control , {
154+ flex : 1
155+ } ) ;
156+ break ;
157+ case "conversation-container" :
158+ control = new qx . ui . container . Scroll ( ) ;
159+ this . getChildControl ( "main-stack" ) . add ( control ) ;
160+ break ;
151161 case "conversation-content" :
152162 control = new osparc . support . Conversation ( ) ;
153- const scroll = new qx . ui . container . Scroll ( ) ;
154- scroll . add ( control ) ;
155- this . _add ( scroll , {
156- flex : 1 ,
157- } ) ;
163+ this . getChildControl ( "conversation- container" ) . add ( control ) ;
164+ break ;
165+ case "book-a-call-iframe" :
166+ control = new osparc . wrapper . BookACallIframe ( ) ;
167+ this . getChildControl ( "main-stack" ) . add ( control ) ;
158168 break ;
159169 }
160170 return control || this . base ( arguments , id ) ;
@@ -167,12 +177,16 @@ qx.Class.define("osparc.support.ConversationPage", {
167177 const title = this . getChildControl ( "conversation-title" ) ;
168178 const conversationContent = this . getChildControl ( "conversation-content" ) ;
169179 conversationContent . clearAllMessages ( ) ;
180+ const conversationContainer = this . getChildControl ( "conversation-container" ) ;
181+ this . getChildControl ( "main-stack" ) . setSelection ( [ conversationContainer ] ) ;
170182 switch ( type ) {
171183 case osparc . support . Conversation . SYSTEM_MESSAGE_TYPE . ASK_A_QUESTION :
172184 title . setValue ( this . tr ( "Ask a Question" ) ) ;
173185 break ;
174186 case osparc . support . Conversation . SYSTEM_MESSAGE_TYPE . BOOK_A_CALL :
175187 title . setValue ( this . tr ( "Book a Call" ) ) ;
188+ const bookACallIframe = this . getChildControl ( "book-a-call-iframe" ) ;
189+ this . getChildControl ( "main-stack" ) . setSelection ( [ bookACallIframe ] ) ;
176190 break ;
177191 case osparc . support . Conversation . SYSTEM_MESSAGE_TYPE . ESCALATE_TO_SUPPORT :
178192 title . setValue ( this . tr ( "Ask a Question" ) ) ;
0 commit comments