feat: disable form workflows for free plan, add upgrade badge, make reminder template free (#24839)
This commit is contained in:
1 parent
02b57eb82e
commit
5663b2ae59
4 files changed
+51
-15
No files matched your search
@@ -40,6 +40,7 @@ interface IAddActionDialog {
|
||||
needsCredits: boolean;
|
||||
creditsTeamId?: number;
|
||||
isOrganization?: boolean;
|
||||
needsTeamsUpgrade?: boolean;
|
||||
}[];
|
||||
}
|
||||
|
||||
@@ -170,7 +171,16 @@ export const AddActionDialog = (props: IAddActionDialog) => {
|
||||
menuPlacement="bottom"
|
||||
defaultValue={actionOptions[0]}
|
||||
onChange={handleSelectAction}
|
||||
options={actionOptions}
|
||||
options={actionOptions.map((option) => ({
|
||||
label: option.label,
|
||||
value: option.value,
|
||||
needsTeamsUpgrade: option.needsTeamsUpgrade,
|
||||
}))}
|
||||
isOptionDisabled={(option: {
|
||||
label: string;
|
||||
value: WorkflowActions;
|
||||
needsTeamsUpgrade?: boolean;
|
||||
}) => !!option.needsTeamsUpgrade}
|
||||
/>
|
||||
);
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user