diff --git a/src/componets/content/Content.tsx b/src/componets/content/Content.tsx index 731ad90..b0d3703 100644 --- a/src/componets/content/Content.tsx +++ b/src/componets/content/Content.tsx @@ -17,11 +17,14 @@ export function Content({ config, env, onTemplateSaved }: ContentProps) { // Validate placeholders for warning badge const missingPlaceholders = config.validatePlaceholders(); const hasValidationWarnings = missingPlaceholders.length > 0; + const warningMessage = hasValidationWarnings + ? `Missing params: ${missingPlaceholders.join(', ')}` + : ''; const tabs: Array<{ id: string; label: string; badge?: string | number; badgeVariant?: 'warning' | 'danger' }> = [ { id: 'env', label: 'Env' }, - { - id: 'template', + { + id: 'template', label: 'Content Template', badge: hasValidationWarnings ? '!' : undefined, badgeVariant: hasValidationWarnings ? 'warning' : undefined, @@ -33,7 +36,15 @@ export function Content({ config, env, onTemplateSaved }: ContentProps) { return (
- +
+ + {activeTab === 'template' && hasValidationWarnings && ( +
+ Warning: + {warningMessage} +
+ )} +