webpack/components/ParameterSelection/ParameterSelectionHelper.js in foreman_acd-0.2.1 vs webpack/components/ParameterSelection/ParameterSelectionHelper.js in foreman_acd-0.3.0
- old
+ new
@@ -1,40 +1,8 @@
import {
cloneDeep,
} from 'lodash';
-export const isNewDefinition = (mode) => {
- if (mode == "newDefinition")
- return true;
- return false;
-}
-
-export const isEditDefinition = (mode) => {
- if (mode == "editDefinition")
- return true;
- return false;
-}
-
-export const isDefinition = (mode) => {
- return (isNewDefinition(mode) || isEditDefinition(mode))
-}
-
-export const isNewInstance = (mode) => {
- if (mode == "newInstance")
- return true;
- return false;
-}
-
-export const isEditInstance = (mode) => {
- if (mode == "editInstance")
- return true;
- return false;
-}
-
-export const isInstance = (mode) => {
- return (isNewInstance(mode) || isEditInstance(mode))
-}
-
export const transformForemanData = (fdata) => {
if (fdata === undefined) {
return "";
}
const result = {};