Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: hide signup btn from shared view in cloud paid plan and onprem

Ramesh Manef562ed4bd911
diff --git a/packages/nc-gui/layouts/shared-view.vue b/packages/nc-gui/layouts/shared-view.vue
index 502204f598..93e21e471a 100644
--- a/packages/nc-gui/layouts/shared-view.vue
+++ b/packages/nc-gui/layouts/shared-view.vue
@@ -1,4 +1,6 @@
<script lang="ts" setup>
+import { PlanTitles } from 'nocodb-sdk'
+
const { isLoading, appInfo } = useGlobal()
const { isDark } = useTheme()
@@ -9,6 +11,8 @@ const { sharedView, allowCSVDownload } = useSharedView()
const { isFullScreen } = storeToRefs(useSidebarStore())
+const { activePlanTitle } = useEeConfig()
+
const router = useRouter()
const route = router.currentRoute
@@ -17,6 +21,12 @@ const disableTopbar = computed(() => route.value.query?.disableTopbar === 'true'
const ncNotFound = computed(() => route.value.query?.ncNotFound === 'true')
+const showSignUpButton = computed(() => {
+ if (!isEeUI || !activePlanTitle.value || activePlanTitle.value === PlanTitles.FREE) return true
+
+ return false
+})
+
onMounted(() => {
// check if we are inside an iframe
// if we are, communicate to the parent page whenever we navigate to a new url,
@@ -109,7 +119,7 @@ export default {
<LazySmartsheetToolbarExportWithProvider v-if="allowCSVDownload" />
<a
- v-if="!appInfo.isOnPrem"
+ v-if="showSignUpButton"
href="https://app.nocodb.com/#/signin"
target="_blank"
class="!no-underline xs:hidden"