Feature flags (#543)
* Re-organize a bit controllers * Added the featureflagcontroller * Implement feature flags in the front-end * Clean env files * Clean console.log messages * Fix feature flag test
This commit is contained in:
@@ -176,7 +176,7 @@
|
||||
<more-features class="pt-56" />
|
||||
|
||||
<pricing-table
|
||||
v-if="paidPlansEnabled"
|
||||
v-if="useFeatureFlag('billing.enabled')"
|
||||
class="pb-20"
|
||||
:home-page="true"
|
||||
>
|
||||
@@ -337,9 +337,6 @@ export default {
|
||||
configLinks() {
|
||||
return this.config.links
|
||||
},
|
||||
paidPlansEnabled() {
|
||||
return this.runtimeConfig.public.paidPlansEnabled
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<p class="text-gray-500 text-sm">
|
||||
Sign up in less than 2 minutes.
|
||||
</p>
|
||||
<template v-if="!appStore.selfHosted || isInvited">
|
||||
<template v-if="!useFeatureFlag('self_hosted') || isInvited">
|
||||
<register-form />
|
||||
</template>
|
||||
<div
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
You can switch to another workspace in top left corner of the page.</small>
|
||||
</div>
|
||||
<div class="w-full flex flex-wrap justify-between gap-2">
|
||||
<WorkSpaceCustomDomains v-if="customDomainsEnabled && !loading" />
|
||||
<WorkSpaceCustomDomains v-if="useFeatureFlag('custom_domains') && !loading" />
|
||||
<UButton
|
||||
label="New Workspace"
|
||||
icon="i-heroicons-plus"
|
||||
@@ -116,9 +116,6 @@ const form = useForm({
|
||||
const workspaceModal = ref(false)
|
||||
|
||||
const workspace = computed(() => workspacesStore.getCurrent)
|
||||
const customDomainsEnabled = computed(
|
||||
() => useRuntimeConfig().public.customDomainsEnabled,
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
fetchAllWorkspaces()
|
||||
|
||||
Reference in New Issue
Block a user