Hide invite warning for AppSumo users
This commit is contained in:
parent
90a53b4d0d
commit
2f497d93c1
|
|
@ -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]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue