diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 274993c621..19d552beac 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -115,6 +115,7 @@ address: 'New-York, 125f-25', mail: 'support@gmail.com', www: 'www.superpuper.com', + phone: '1234567890', info: 'Some info', logo: '', logoDark: '', // logo for dark theme diff --git a/apps/common/main/lib/view/About.js b/apps/common/main/lib/view/About.js index 04f3530eb0..8bdf0c190f 100644 --- a/apps/common/main/lib/view/About.js +++ b/apps/common/main/lib/view/About.js @@ -126,6 +126,12 @@ define([ '', '', '', + '', + '', + '', + '', + '', + '', '', '', '', @@ -177,6 +183,7 @@ define([ this.lblCompanyMail = _$l.findById('#id-about-company-mail'); this.lblCompanyUrl = _$l.findById('#id-about-company-url'); this.lblCompanyLic = _$l.findById('#id-about-company-lic'); + this.lblCompanyTel = _$l.findById('#id-about-company-tel'); this.$el.html(_$l); this.$el.addClass('about-dlg'); @@ -224,6 +231,11 @@ define([ this.lblCompanyMail.attr('href', "mailto:"+value).text(value) : this.lblCompanyMail.parents('tr').addClass('hidden'); + value = customer.phone; + value && value.length ? + this.lblCompanyTel.text(value) : + this.lblCompanyTel.parents('tr').addClass('hidden'); + if ((value = customer.www) && value.length) { var http = !/^https?:\/{2}/i.test(value) ? "http:\/\/" : ''; this.lblCompanyUrl.attr('href', http+value).text(value); diff --git a/apps/common/mobile/lib/view/About.jsx b/apps/common/mobile/lib/view/About.jsx index 38c66dba66..237a4dcabc 100644 --- a/apps/common/mobile/lib/view/About.jsx +++ b/apps/common/mobile/lib/view/About.jsx @@ -12,6 +12,7 @@ const PageAbout = props => { const customer = licInfo ? licInfo.customer : null; const nameCustomer = customer ? customer.name : null; const mailCustomer = customer ? customer.mail : null; + const phoneCustomer = customer ? customer.phone : null; const addressCustomer = customer ? customer.address : null; const urlCustomer = customer ? customer.www : null; const infoCustomer = customer ? customer.info : null; @@ -61,6 +62,13 @@ const PageAbout = props => { {mailCustomer}

) : null} + {phoneCustomer && phoneCustomer.length ? ( +

+ + {phoneCustomer} +

+ ) : null} + {urlCustomer && urlCustomer.length ? (