File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -149,13 +149,21 @@ qx.Class.define("osparc.product.AboutProduct", {
149149 For more information about TIP, please visit ${ osparc . utils . Utils . createHTMLLink ( "itis.swiss" , "href='https://itis.swiss/tools-and-systems/ti-planning/overview" ) } .
150150 <br><br>
151151 To review license agreements, click ${ osparc . utils . Utils . createHTMLLink ( "here" , licenseUrl ) } .
152+ <br><br>
153+ Send us an email ${ this . __getMailTo ( ) }
152154 ` ) ;
153155
154156 const label = osparc . product . quickStart . Utils . createLabel ( text ) ;
155157 this . add ( label ) ;
156158 } ) ;
157159 } ,
158160
161+ __getMailTo : function ( ) {
162+ const supportEmail = osparc . store . VendorInfo . getInstance ( ) . getSupportEmail ( ) ;
163+ const productName = osparc . store . StaticInfo . getInstance ( ) . getDisplayName ( ) ;
164+ return osparc . store . Support . mailToText ( supportEmail , "Support " + productName , false ) ;
165+ } ,
166+
159167 __addCopyright : function ( ) {
160168 const copyrightLink = new osparc . ui . basic . LinkLabel ( ) . set ( {
161169 font : "link-label-14"
@@ -168,6 +176,6 @@ qx.Class.define("osparc.product.AboutProduct", {
168176 } ) ;
169177 }
170178 this . add ( copyrightLink ) ;
171- }
179+ } ,
172180 }
173181} ) ;
Original file line number Diff line number Diff line change @@ -135,9 +135,12 @@ qx.Class.define("osparc.store.Support", {
135135 } ) ;
136136 } ,
137137
138- mailToText : function ( email , subject ) {
138+ mailToText : function ( email , subject , centered = true ) {
139139 const color = qx . theme . manager . Color . getInstance ( ) . resolve ( "text" ) ;
140- const textLink = `<center><a href="mailto:${ email } ?subject=${ subject } " style='color: ${ color } ' target='_blank'>${ email } </a>  <center>` ;
140+ let textLink = `<a href="mailto:${ email } ?subject=${ subject } " style='color: ${ color } ' target='_blank'>${ email } </a>  ` ;
141+ if ( centered ) {
142+ textLink = `<center>${ textLink } </center>`
143+ }
141144 return textLink ;
142145 } ,
143146
You can’t perform that action at this time.
0 commit comments