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

This commit is contained in:
Ramesh Mane
2026-01-23 06:05:55 +00:00
parent f9a1824881
commit f562ed4bd9

View File

@@ -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"