@@ -38,6 +38,7 @@ qx.Class.define("osparc.support.SupportCenter", {
3838 this . getChildControl ( "conversations-intro-text" ) ;
3939 this . getChildControl ( "conversations-list" ) ;
4040 this . getChildControl ( "ask-a-question-button" ) ;
41+ this . getChildControl ( "book-a-call-button" ) ;
4142 } ,
4243
4344 statics : {
@@ -112,6 +113,12 @@ qx.Class.define("osparc.support.SupportCenter", {
112113 } ) ;
113114 break ;
114115 }
116+ case "buttons-layout" :
117+ control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 10 ) ) . set ( {
118+ alignX : "center" ,
119+ } ) ;
120+ this . getChildControl ( "conversations-layout" ) . add ( control ) ;
121+ break ;
115122 case "ask-a-question-button" :
116123 control = new osparc . ui . form . FetchButton ( this . tr ( "Ask a Question" ) ) . set ( {
117124 appearance : "strong-button" ,
@@ -120,7 +127,17 @@ qx.Class.define("osparc.support.SupportCenter", {
120127 alignX : "center" ,
121128 } ) ;
122129 control . addListener ( "execute" , ( ) => this . openConversation ( null ) , this ) ;
123- this . getChildControl ( "conversations-layout" ) . add ( control ) ;
130+ this . getChildControl ( "buttons-layout" ) . add ( control ) ;
131+ break ;
132+ case "book-a-call-button" :
133+ control = new osparc . ui . form . FetchButton ( this . tr ( "Book a Call" ) ) . set ( {
134+ appearance : "strong-button" ,
135+ allowGrowX : false ,
136+ center : true ,
137+ alignX : "center" ,
138+ } ) ;
139+ control . addListener ( "execute" , ( ) => this . createConversationBookCall ( null ) , this ) ;
140+ this . getChildControl ( "buttons-layout" ) . add ( control ) ;
124141 break ;
125142 case "conversation-page" :
126143 control = new osparc . support . ConversationPage ( ) ;
@@ -152,5 +169,11 @@ qx.Class.define("osparc.support.SupportCenter", {
152169 this . __showConversation ( ) ;
153170 }
154171 } ,
172+
173+ createConversationBookCall : function ( ) {
174+ const conversationPage = this . getChildControl ( "conversation-page" ) ;
175+ conversationPage . setConversation ( null ) ;
176+ this . __showConversation ( ) ;
177+ } ,
155178 }
156179} ) ;
0 commit comments