From 353555c03cbc1dd669b6a8f0c21cb42fa3ba165f Mon Sep 17 00:00:00 2001 From: travis-architect <72377796+travis-architect@users.noreply.github.com> Date: Wed, 23 Feb 2022 11:25:59 +0500 Subject: [PATCH] Hid autorefill switch for free plans (#2644) (#2669) * Hid autorefill switch for free plans * Additional fix * Revert unnecessary changes * Revert unnecessary changes * Deleted trailing spaces * Break too long line into two lines * Fix Co-authored-by: Ivan Dmytrenko Co-authored-by: Andrii Mysko Co-authored-by: Ivan Dmytrenko --- app/components/billing/auto-refill.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/billing/auto-refill.js b/app/components/billing/auto-refill.js index 5f4ddc6de2..a23ac2b47d 100644 --- a/app/components/billing/auto-refill.js +++ b/app/components/billing/auto-refill.js @@ -41,7 +41,8 @@ export default Component.extend({ show: computed('subscription', function () { let isOrganization = this.subscription.owner.get('isOrganization'); let isAdmin = this.subscription.owner.get('permissions').admin; - return !(this.subscription.plan.get('isFree') || this.subscription.get('isManual') || (isOrganization && !isAdmin)); + return !(this.subscription.plan.get('id') === 'free_tier_plan' || this.subscription.plan.get('id') === 'starter_plan' + || this.subscription.get('isManual') || isOrganization && !isAdmin); }), toggleAutoRefill: task(function* (value) {