Skip to content

Commit

Permalink
Disable apply button at initial state and move agents to their origin…
Browse files Browse the repository at this point in the history
…al position (#3605)
  • Loading branch information
sortiz1191 committed Nov 5, 2021
1 parent 89d1ef4 commit e91a42c
Show file tree
Hide file tree
Showing 17 changed files with 1,170 additions and 1,495 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed order logs properly in Management/Logs [#3609](https://github.com/wazuh/wazuh-kibana-app/pull/3609)
- Fix CDB list view not working with IPv6 [#3488](https://github.com/wazuh/wazuh-kibana-app/pull/3488)
- Fixed the bad requests using Console tool to `PUT /active-response` API endpoint [#3466](https://github.com/wazuh/wazuh-kibana-app/pull/3466)
- Fixed group agent management table does not update on error [#3605](https://github.com/wazuh/wazuh-kibana-app/pull/3605)

## Wazuh v4.2.4 - Kibana 7.10.2, 7.11.2, 7.12.1 - Revision 4205

Expand Down
838 changes: 195 additions & 643 deletions common/api-info/endpoints.json

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions public/components/add-modules-data/sample-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@
import React, { Component, Fragment } from 'react';
import { WzButtonPermissions } from '../../components/common/permissions/button';

import {
EuiFlexItem,
EuiCard,
EuiFlexGrid,
EuiFlexGroup,
} from '@elastic/eui';
import { EuiFlexItem, EuiCard, EuiFlexGrid, EuiFlexGroup } from '@elastic/eui';

import { getToasts } from '../../kibana-services';
import { WzRequest } from '../../react-services/wz-request';
Expand Down Expand Up @@ -234,9 +229,8 @@ export default class WzSampleData extends Component {
}
}
renderCard(category) {
const { addDataLoading, exists, removeDataLoading } = this.state[
category.categorySampleAlertsIndex
];
const { addDataLoading, exists, removeDataLoading } =
this.state[category.categorySampleAlertsIndex];
return (
<EuiFlexItem key={`sample-data-${category.title}`}>
<EuiCard
Expand Down
9 changes: 4 additions & 5 deletions public/components/common/hooks/use-filter-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
* Find more information about this on the LICENSE file.
*/
import { getDataPlugin } from '../../../kibana-services';
import { useState, useEffect} from 'react';

import { useState, useEffect } from 'react';

export const useFilterManager = () => {
const [filterManager, setFilterManager] = useState(getDataPlugin().query.filterManager);
return filterManager;
}
const [filterManager, setFilterManager] = useState(getDataPlugin().query.filterManager);
return filterManager;
};
Loading

0 comments on commit e91a42c

Please sign in to comment.