diff --git a/frontend/src/component/feature/form/index.jsx b/frontend/src/component/feature/form/index.jsx
index f292085a01..98050c541f 100644
--- a/frontend/src/component/feature/form/index.jsx
+++ b/frontend/src/component/feature/form/index.jsx
@@ -71,6 +71,8 @@ class AddFeatureToggleComponent extends Component {
+
+
diff --git a/frontend/src/component/feature/form/strategies-add.jsx b/frontend/src/component/feature/form/strategies-add.jsx
index b775fa827b..c255b40b0b 100644
--- a/frontend/src/component/feature/form/strategies-add.jsx
+++ b/frontend/src/component/feature/form/strategies-add.jsx
@@ -57,13 +57,16 @@ class AddStrategy extends React.Component {
});
return (
-
+
+
+
);
}
}
diff --git a/frontend/src/component/feature/form/strategies-list.jsx b/frontend/src/component/feature/form/strategies-list.jsx
index 35a96cb8f1..58878efd21 100644
--- a/frontend/src/component/feature/form/strategies-list.jsx
+++ b/frontend/src/component/feature/form/strategies-list.jsx
@@ -21,7 +21,7 @@ class StrategiesList extends React.Component {
} = this.props;
if (!configuredStrategies || configuredStrategies.length === 0) {
- return No strategies added;
+ return No strategies added;
}
const blocks = configuredStrategies.map((strat, i) => (
@@ -33,9 +33,9 @@ class StrategiesList extends React.Component {
strategyDefinition={strategies.find(s => s.name === strat.name)} />
));
return (
-
+
{blocks}
-
+
);
}
}
diff --git a/frontend/src/component/feature/form/strategies-section.jsx b/frontend/src/component/feature/form/strategies-section.jsx
index 06d91567aa..4b8b2c7f2b 100644
--- a/frontend/src/component/feature/form/strategies-section.jsx
+++ b/frontend/src/component/feature/form/strategies-section.jsx
@@ -3,8 +3,6 @@ import StrategiesList from './strategies-list';
import AddStrategy from './strategies-add';
const headerStyle = {
- borderBottom: '1px solid rgba(0, 0, 0, 0.12)',
- paddingBottom: '5px',
marginBottom: '10px',
};
@@ -31,11 +29,9 @@ class StrategiesSection extends React.Component {
return (
-
+
Activation strategies
+
+
);
}
diff --git a/frontend/src/component/feature/form/strategy-configure.jsx b/frontend/src/component/feature/form/strategy-configure.jsx
index fdef8863ce..8bb7f1b227 100644
--- a/frontend/src/component/feature/form/strategy-configure.jsx
+++ b/frontend/src/component/feature/form/strategy-configure.jsx
@@ -23,7 +23,7 @@ class StrategyConfigure extends React.Component {
};
handleConfigChange = (key, value) => {
- const parameters = {};
+ const parameters = this.props.strategy.parameters || {};
parameters[key] = value;
const updatedStrategy = Object.assign({}, this.props.strategy, { parameters });
@@ -52,27 +52,28 @@ class StrategyConfigure extends React.Component {
}
render () {
- const leftActions = [
- ,
- ];
-
if (!this.props.strategyDefinition) {
return (
- Strategy "{this.props.strategy.name}" deleted}
- />
+
+
Strategy "{this.props.strategy.name}" deleted
+
+
);
}
const inputFields = this.renderInputFields(this.props.strategyDefinition) || [];
return (
-
+
+
+ {this.props.strategy.name}
+ (remove)
+
+
{this.props.strategyDefinition.description}
+
+ {inputFields}
+
+
);
}
}