Scheduling infrastructure for absolutely everyone.
only custom template needs upgrade and free users cannot edit email title and body of existing templates (#24907)
Dhairyashil Shinde0bf0749b295c
diff --git a/packages/features/ee/workflows/components/WorkflowStepContainer.tsx b/packages/features/ee/workflows/components/WorkflowStepContainer.tsxindex cef979e2c2a..8c6e32ba58e 100644--- a/packages/features/ee/workflows/components/WorkflowStepContainer.tsx+++ b/packages/features/ee/workflows/components/WorkflowStepContainer.tsx@@ -380,11 +380,6 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {name: "steps",});- // Extract current step template from watched steps array- const currentStepTemplate = step ? steps?.[step.stepNumber - 1]?.template : null;-- const isReminderTemplate = currentStepTemplate === WorkflowTemplates.REMINDER;-const hasAiAction = hasCalAIAction(steps);const hasEmailToHostAction = steps.some((s) => s.action === WorkflowActions.EMAIL_HOST);const hasWhatsappAction = steps.some((s) => isWhatsappAction(s.action));@@ -1335,7 +1330,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {refEmailSubject.current = e;}}rows={2}- disabled={props.readOnly || (!hasActiveTeamPlan && !isReminderTemplate)}+ disabled={props.readOnly || !hasActiveTeamPlan}className="my-0 focus:ring-transparent"required{...restEmailSubjectForm}@@ -1368,7 +1363,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {editable={!props.readOnly &&!isWhatsappAction(step.action) &&- (hasActiveTeamPlan || isSMSAction(step.action) || isReminderTemplate)+ (hasActiveTeamPlan || isSMSAction(step.action))}excludedToolbarItems={!isSMSAction(step.action) ? [] : ["blockType", "bold", "italic", "link"]diff --git a/packages/features/ee/workflows/lib/getOptions.ts b/packages/features/ee/workflows/lib/getOptions.tsindex df73f475cce..2d27560cd70 100644--- a/packages/features/ee/workflows/lib/getOptions.ts+++ b/packages/features/ee/workflows/lib/getOptions.ts@@ -62,7 +62,7 @@ function convertToTemplateOptions(return {label: t(`${template.toLowerCase()}`),value: template,- needsTeamsUpgrade: !hasPaidPlan && template !== WorkflowTemplates.REMINDER,+ needsTeamsUpgrade: !hasPaidPlan && template === WorkflowTemplates.CUSTOM,} as { label: string; value: any; needsTeamsUpgrade: boolean };});}