{this.state.isPopoverOpen && (
-
+
this.addItem()}
@@ -388,7 +409,9 @@ class WzListEditor extends Component {
- this.closeAddEntry()}>Close
+ this.closeAddEntry()}>
+ Close
+
@@ -410,12 +433,12 @@ class WzListEditor extends Component {
-
+
this.props.clearContent()}
/>
@@ -424,7 +447,7 @@ class WzListEditor extends Component {
-
+
{path}
@@ -449,10 +472,10 @@ class WzListEditor extends Component {
if (this.state.editing === item.key) {
return (
);
} else {
@@ -463,26 +486,26 @@ class WzListEditor extends Component {
{
name: 'Actions',
align: 'left',
- render: (item) => {
+ render: item => {
if (this.state.editing === item.key) {
return (
-
+
{
this.setEditedValue();
}}
- color="primary"
+ color='primary'
/>
-
+
this.setState({ editing: false })}
- color="danger"
+ color='danger'
/>
@@ -491,9 +514,9 @@ class WzListEditor extends Component {
return (
{
@@ -502,16 +525,16 @@ class WzListEditor extends Component {
editingValue: item.value,
});
}}
- color="primary"
+ color='primary'
/>
this.deleteItem(item.key)}
- color="danger"
+ color='danger'
/>
);
@@ -522,7 +545,10 @@ class WzListEditor extends Component {
}
render() {
- const { listContent: { name, path }, isLoading } = this.props;
+ const {
+ listContent: { name, path },
+ isLoading,
+ } = this.props;
const message = isLoading ? false : 'No results...';
@@ -546,7 +572,7 @@ class WzListEditor extends Component {
value: name,
},
],
- name
+ name,
);
this.setState({ generatingCsv: false });
} catch (error) {
@@ -563,7 +589,7 @@ class WzListEditor extends Component {
getErrorOrchestrator().handleError(options);
this.setState({ generatingCsv: false });
}
- }
+ };
return (
@@ -580,7 +606,7 @@ class WzListEditor extends Component {
{!addingNew && (
exportToCsv()}
@@ -590,14 +616,23 @@ class WzListEditor extends Component {
)}
{!this.state.editing &&
- this.renderAddAndSave(listName, path, !addingNew, this.state.items)}
+ this.renderAddAndSave(
+ listName,
+ path,
+ !addingNew,
+ this.state.items,
+ )}
{this.state.showWarningRestart && (
-
+
this.setState({ showWarningRestart: false })}
- onRestartedError={() => this.setState({ showWarningRestart: true })}
+ onRestarted={() =>
+ this.setState({ showWarningRestart: false })
+ }
+ onRestartedError={() =>
+ this.setState({ showWarningRestart: true })
+ }
/>
)}
@@ -608,7 +643,7 @@ class WzListEditor extends Component {
{
+const mapDispatchToProps = dispatch => {
return {
- updateWazuhNotReadyYet: (wazuhNotReadyYet) =>
+ updateWazuhNotReadyYet: wazuhNotReadyYet =>
dispatch(updateWazuhNotReadyYet(wazuhNotReadyYet)),
};
};