webpack/components/NewTemplateSync/components/SyncSettingField.js in foreman_templates-7.0.4 vs webpack/components/NewTemplateSync/components/SyncSettingField.js in foreman_templates-7.0.5
- old
+ new
@@ -22,10 +22,18 @@
const handleReset = (settingName, settingValue) => {
resetField(settingName, settingValue);
};
+ const tooltipContent = (
+ <div
+ dangerouslySetInnerHTML={{
+ __html: setting.description,
+ }}
+ />
+ );
+
return (
<TextButtonField
name={setting.name}
label={label(setting)}
blank={{}}
@@ -36,10 +44,10 @@
}}
fieldSelector={fieldSelector}
disabled={disabled}
fieldRequired={setting.required}
validate={setting.validate}
- tooltipHelp={<FieldLevelHelp content={setting.description} />}
+ tooltipHelp={<FieldLevelHelp content={tooltipContent} />}
>
{setting.value}
</TextButtonField>
);
};