mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 19:39:01 -05:00
fix: update trial entitlement check and adjust follow-up button text
This commit is contained in:
@@ -19,7 +19,7 @@ const TRIAL_RESTRICTED_ENTITLEMENT_KEYS = [
|
||||
] as const satisfies readonly TEntitlementFeature[];
|
||||
|
||||
const isTrialRestrictedEntitlement = (featureLookupKey: TEntitlementFeature): boolean =>
|
||||
TRIAL_RESTRICTED_ENTITLEMENT_KEYS.some((restrictedFeature) => restrictedFeature === featureLookupKey);
|
||||
(TRIAL_RESTRICTED_ENTITLEMENT_KEYS as readonly TEntitlementFeature[]).includes(featureLookupKey);
|
||||
|
||||
export const hasOrganizationEntitlement = async (
|
||||
organizationId: string,
|
||||
|
||||
@@ -19,6 +19,7 @@ interface FollowUpsViewProps {
|
||||
mailFrom: string;
|
||||
isSurveyFollowUpsAllowed: boolean;
|
||||
isFormbricksCloud: boolean;
|
||||
isTrialing: boolean;
|
||||
userEmail: string;
|
||||
teamMemberDetails: TFollowUpEmailToUser[];
|
||||
locale: TUserLocale;
|
||||
@@ -31,6 +32,7 @@ export const FollowUpsView = ({
|
||||
mailFrom,
|
||||
isSurveyFollowUpsAllowed,
|
||||
isFormbricksCloud,
|
||||
isTrialing,
|
||||
userEmail,
|
||||
teamMemberDetails,
|
||||
locale,
|
||||
@@ -48,7 +50,9 @@ export const FollowUpsView = ({
|
||||
description={t("environments.surveys.edit.follow_ups_empty_description")}
|
||||
buttons={[
|
||||
{
|
||||
text: isFormbricksCloud ? t("common.start_free_trial") : t("common.request_trial_license"),
|
||||
text: isFormbricksCloud
|
||||
? t("environments.settings.billing.upgrade")
|
||||
: t("common.request_trial_license"),
|
||||
href: isFormbricksCloud
|
||||
? `/environments/${localSurvey.environmentId}/settings/billing`
|
||||
: "https://formbricks.com/docs/self-hosting/license",
|
||||
|
||||
Reference in New Issue
Block a user