Hide invite warning for AppSumo users
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
Invite a new user and collaborate on building forms
|
||||
</h4>
|
||||
|
||||
<template v-if="paidPlansEnabled">
|
||||
<template v-if="paidPlansEnabled && !hasActiveLicense">
|
||||
<UAlert
|
||||
v-if="workspace.is_pro"
|
||||
icon="i-heroicons-credit-card"
|
||||
@@ -206,7 +206,7 @@ const paidPlansEnabled = computed(() => useRuntimeConfig().public.paidPlansEnabl
|
||||
const canInviteUser = computed(() => {
|
||||
return paidPlansEnabled.value ? workspace.value.is_pro : true
|
||||
})
|
||||
|
||||
const hasActiveLicense = computed(() => authStore.has_active_license)
|
||||
|
||||
onMounted(() => {
|
||||
getWorkspaceUsers()
|
||||
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
form_quantity: "Unlimited",
|
||||
file_upload_size: "75mb",
|
||||
domain_names: "Unlimited",
|
||||
users: 10
|
||||
users: 20
|
||||
},
|
||||
}[this.licenseTier]
|
||||
},
|
||||
|
||||
1
client/stores/auth.js
vendored
1
client/stores/auth.js
vendored
@@ -10,6 +10,7 @@ export const useAuthStore = defineStore("auth", {
|
||||
},
|
||||
getters: {
|
||||
check: (state) => state.user !== null && state.user !== undefined,
|
||||
has_active_license: (state) => state.user !== null && state.user !== undefined && state.user.active_license !== null,
|
||||
isImpersonating: (state) =>
|
||||
state.admin_token !== null && state.admin_token !== undefined,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user