File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,20 @@ qx.Class.define("osparc.store.Support", {
153153 }
154154 } ,
155155
156+ getManualButtons : function ( ) {
157+ const manuals = osparc . store . Support . getManuals ( ) ;
158+ const manualButtons = [ ] ;
159+ manuals . forEach ( manual => {
160+ const manualBtn = new qx . ui . form . Button ( manual . label , "@FontAwesome5Solid/book/14" ) ;
161+ manualBtn . getChildControl ( "label" ) . set ( {
162+ rich : true
163+ } ) ;
164+ manualBtn . addListener ( "execute" , ( ) => window . open ( manual . url ) , this ) ;
165+ manualButtons . push ( manualBtn ) ;
166+ } ) ;
167+ return manualButtons ;
168+ } ,
169+
156170 addSupportButtonsToMenu : function ( menu ) {
157171 const issues = osparc . store . VendorInfo . getIssues ( ) ;
158172 const supports = osparc . store . VendorInfo . getSupports ( ) ;
Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ qx.Class.define("osparc.support.HomePage", {
5959
6060 const guidedToursButton = osparc . store . Support . getGuidedToursButton ( ) ;
6161 this . _add ( guidedToursButton ) ;
62+
63+ const manualButtons = osparc . store . Support . getManualButtons ( ) ;
64+ if ( manualButtons ) {
65+ manualButtons . forEach ( manualButton => {
66+ this . _add ( manualButton ) ;
67+ } ) ;
68+ }
6269 } ,
6370 }
6471} ) ;
You can’t perform that action at this time.
0 commit comments