Fixed portal plan params in preview mode

refs 7687571b12

While extracting the portal preview url setup to member-utils, the util incorrectly referenced values for free/monthly/yearly plans and so stopped reacting to selected plans in Portal preview. This change fixes the `isFreeChecked`, `isMonthlyChecked` and `isYearlyChecked` references in util.
This commit is contained in:
Rish 2021-02-11 00:10:27 +05:30
parent 7c2bae6f29
commit 9794fb4268

View File

@ -23,9 +23,9 @@ export default class MembersUtilsService extends Service {
disableBackground,
buttonIcon,
page = 'signup',
isFree = true,
isMonthly = true,
isYearly = true,
isFreeChecked = true,
isMonthlyChecked = true,
isYearlyChecked = true,
monthlyPrice,
yearlyPrice,
currency
@ -43,9 +43,9 @@ export default class MembersUtilsService extends Service {
settingsParam.append('button', this.settings.get('portalButton'));
settingsParam.append('name', this.settings.get('portalName'));
settingsParam.append('isFree', isFree);
settingsParam.append('isMonthly', isMonthly);
settingsParam.append('isYearly', isYearly);
settingsParam.append('isFree', isFreeChecked);
settingsParam.append('isMonthly', isMonthlyChecked);
settingsParam.append('isYearly', isYearlyChecked);
settingsParam.append('page', page);
settingsParam.append('buttonIcon', encodeURIComponent(buttonIcon));
settingsParam.append('signupButtonText', encodeURIComponent(signupButtonText));