- You need a subscription to access your form
+ You need a subscription to access your form
analytics.
diff --git a/client/components/open/forms/components/form-components/FormCustomization.vue b/client/components/open/forms/components/form-components/FormCustomization.vue
index 79045b41..22219abe 100644
--- a/client/components/open/forms/components/form-components/FormCustomization.vue
+++ b/client/components/open/forms/components/form-components/FormCustomization.vue
@@ -149,12 +149,16 @@
Remove OpnForm Branding
-
+
authStore.user)
+const workspace = computed(() => workspacesStore.getCurrent)
+
+const isPro = computed(() => {
+ if (!useRuntimeConfig().public.paidPlansEnabled) return true
+ if (!user.value || !workspace.value) return false
+ return workspace.value.is_pro
+})
+
onMounted(() => {
isMounted.value = true
})
const onChangeConfettiOnSubmission = (val) => {
- form.confetti_on_submission = val
if (isMounted.value && val) {
confetti.play()
}
}
+const onChangeNoBranding = (val) => {
+ if (!isPro.value && val) {
+ subscriptionModalStore.setModalContent("Upgrade today to remove OpnForm branding")
+ subscriptionModalStore.openModal()
+ setTimeout(() => {
+ form.value.no_branding = false
+ console.log("form.value.no_branding", form.value.no_branding)
+ }, 300)
+ }
+}
+
const onApplyFont = (val) => {
form.value.font_family = val
showGoogleFontPicker.value = false
diff --git a/client/components/open/integrations/components/IntegrationListOption.vue b/client/components/open/integrations/components/IntegrationListOption.vue
index 9f9a8c1d..18f92a55 100644
--- a/client/components/open/integrations/components/IntegrationListOption.vue
+++ b/client/components/open/integrations/components/IntegrationListOption.vue
@@ -8,7 +8,7 @@
role="button"
:class="{
'hover:bg-blue-50 group cursor-pointer': !unavailable,
- 'cursor-not-allowed': unavailable,
+ 'cursor-not-allowed': integration.coming_soon,
}"
class="bg-gray-50 border border-gray-200 rounded-md transition-colors p-4 pb-2 items-center justify-center w-[170px] h-[110px] flex flex-col relative"
@click="onClick"
@@ -49,8 +49,9 @@
\ No newline at end of file
diff --git a/client/components/pages/forms/show/FormCleanings.vue b/client/components/pages/forms/show/FormCleanings.vue
index d7add53c..b8216001 100644
--- a/client/components/pages/forms/show/FormCleanings.vue
+++ b/client/components/pages/forms/show/FormCleanings.vue
@@ -1,154 +1,113 @@
-
-
+
+
+
-
- Some features that are included in our
- {{ form.is_pro ? "Enterprise" : "Pro" }} plan are disabled when
- publicly sharing this form
- (only owners of this form can see this).
+ Upgrade to unlock all features
+
+
+ Only you are seeing this notification, as owner of the form. The
+ following features are disabled on the published form:
-
-
-
-
-
-
- {{
- form.is_pro
- ? "Upgrade your OpnForms plan today"
- : "Start your free OpnForms trial"
- }}
-
- to unlock all of our features and build powerful forms.
-
-
-
-
- {{ form.is_pro ? "Upgrade plan" : "Start free trial" }}
-
-
-
- Contact us
-
-
-
- Hide warning
-
-
-
-
-
+
+
+
+ Upgrade plan - Unlock all features
+
+
+ Start free trial - Unlock all features
+
+
+
+ Dismiss
+
+
+
+
+
+
diff --git a/client/components/pages/pricing/MonthlyYearlySelector.vue b/client/components/pages/pricing/MonthlyYearlySelector.vue
index 9b8bede3..c81e2a81 100644
--- a/client/components/pages/pricing/MonthlyYearlySelector.vue
+++ b/client/components/pages/pricing/MonthlyYearlySelector.vue
@@ -1,27 +1,33 @@
-
-