diff --git a/client/src/components/dynamic-groups/rule-editor.tsx b/client/src/components/dynamic-groups/rule-editor.tsx index 56317d3..3b0d984 100644 --- a/client/src/components/dynamic-groups/rule-editor.tsx +++ b/client/src/components/dynamic-groups/rule-editor.tsx @@ -24,6 +24,7 @@ import { import { DynamicGroupRule, LdapConnection } from '@shared/schema'; import CronJobBuilder, { ScheduleItem } from './cron-job-builder'; import ConditionBuilder from './condition-builder'; +import VariableSelector from './variable-selector'; import { useToast } from '@/hooks/use-toast'; import { queryClient, apiRequest } from '@/lib/queryClient'; import { useMutation, useQuery } from '@tanstack/react-query'; @@ -349,17 +350,30 @@ export const RuleEditor: React.FC = ({ rule, onSave, onCancel }
CN= - +
+ +
+ { + const variableText = `{${variable}}`; + const currentValue = formData.targetGroupName || ''; + const newValue = currentValue + variableText; + setFormData({ ...formData, targetGroupName: newValue }); + }} + connections={formData.connections} + /> +
+

- Name of the group (can include variables) + Name of the group (can include variables like {'{attributeName}'})

@@ -387,51 +401,6 @@ export const RuleEditor: React.FC = ({ rule, onSave, onCancel } -
- -