feat: allow remove branding of in app surveys (#2085)

Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
This commit is contained in:
Johannes
2024-02-22 11:13:34 +01:00
committed by GitHub
parent 1d2c8719c3
commit aa55ced425
6 changed files with 8 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ export const getIsEnterpriseEdition = (): boolean => {
export const getRemoveInAppBrandingPermission = (team: TTeam): boolean => {
if (IS_FORMBRICKS_CLOUD) return team.billing.features.inAppSurvey.status !== "inactive";
else if (!IS_FORMBRICKS_CLOUD) return getIsEnterpriseEdition();
else if (!IS_FORMBRICKS_CLOUD) return true;
else return false;
};

View File

@@ -68,6 +68,7 @@ export default function SurveysList({
{filteredSurveys.map((survey) => {
return (
<SurveyCard
key={survey.id}
survey={survey}
environment={environment}
otherEnvironment={otherEnvironment}
@@ -84,6 +85,7 @@ export default function SurveysList({
{filteredSurveys.map((survey) => {
return (
<SurveyCard
key={survey.id}
survey={survey}
environment={environment}
otherEnvironment={otherEnvironment}