From 9794fb42689d10a9575a83f1fb3aa77e1adcfb61 Mon Sep 17 00:00:00 2001 From: Rish Date: Thu, 11 Feb 2021 00:10:27 +0530 Subject: [PATCH] Fixed portal plan params in preview mode refs https://github.com/TryGhost/Admin/commit/7687571b12760202173d02dce045e4eccfe14703 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. --- ghost/admin/app/services/members-utils.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ghost/admin/app/services/members-utils.js b/ghost/admin/app/services/members-utils.js index e8ec0834a6..0cdd8ea890 100644 --- a/ghost/admin/app/services/members-utils.js +++ b/ghost/admin/app/services/members-utils.js @@ -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));