refactor(landing): license variables, 3-rd party imports

This commit is contained in:
u.ahmetvaliyev 2019-01-24 16:37:12 +03:00
parent 351de1388e
commit baa60a004c
2 changed files with 21 additions and 19 deletions

View file

@ -14,7 +14,9 @@ import { Component} from '@angular/core';
export class BackendBundlesSectionComponent {
licenseType = 'Personal';
selectedLicenseType = 'Personal';
personalLicense = 'Personal';
commercialLicense = 'Commercial';
firstBundleName = '.NET + ngx-admin E-commerce';
secondBundleName = '.NET + ngx-admin IoT';
@ -50,14 +52,14 @@ export class BackendBundlesSectionComponent {
}
isCommercial() {
return this.licenseType === 'Commercial';
return this.selectedLicenseType === 'Commercial';
}
private getMailToText(bundleName: string) {
return 'mailto:support@akveo.com' +
`?subject=${this.licenseType} ${bundleName} Bundle` +
`?subject=${this.selectedLicenseType} ${bundleName} Bundle` +
'&body=Dear Akveo, %0D%0A%0D%0A' +
`I would like to purchase ${this.licenseType} ${bundleName} Bundle. ` +
`I would like to purchase ${this.selectedLicenseType} ${bundleName} Bundle. ` +
'Please give me details how I can proceed with that. %0D%0A%0D%0A' +
'Thanks and regards';
}