web-manager 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/account.js +11 -3
- package/package.json +1 -1
package/lib/account.js
CHANGED
@@ -160,12 +160,20 @@ function handlePlanVisibility(planId) {
|
|
160
160
|
|
161
161
|
// Special case for '$paid'
|
162
162
|
if (requiredPlans.includes('$paid')) {
|
163
|
-
shouldBeVisible =
|
163
|
+
shouldBeVisible = planId !== 'basic';
|
164
164
|
} else {
|
165
|
-
shouldBeVisible =
|
165
|
+
shouldBeVisible = requiredPlans.includes(planId);
|
166
166
|
}
|
167
167
|
|
168
|
-
|
168
|
+
var shouldHide = shouldBeVisible
|
169
|
+
? visibility === 'hidden'
|
170
|
+
: visibility === 'visible';
|
171
|
+
|
172
|
+
if (shouldHide) {
|
173
|
+
element.setAttribute('hidden', true);
|
174
|
+
} else {
|
175
|
+
element.removeAttribute('hidden');
|
176
|
+
}
|
169
177
|
});
|
170
178
|
}
|
171
179
|
|
package/package.json
CHANGED