webpack/helper.js in foreman_acd-0.9.0 vs webpack/helper.js in foreman_acd-0.9.1
- old
+ new
@@ -29,11 +29,26 @@
{value}
</Table.Heading>
);
}
+function supportedPluginsToHiddenParameterTypes(supportedPlugins) {
+ let hiddenParameterTypes = [];
+
+ if (supportedPlugins['puppet'] == false) {
+ hiddenParameterTypes.push("puppetenv");
+ }
+
+ if (supportedPlugins['katello'] == false) {
+ hiddenParameterTypes.push("lifecycleenv");
+ }
+
+ return hiddenParameterTypes;
+}
+
export {
arrayToObject,
arrayToObjectObj,
shortHostname,
- EasyHeaderFormatter
+ EasyHeaderFormatter,
+ supportedPluginsToHiddenParameterTypes
};