Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable apply button at initial state and move agents to their original position #3605

Merged
merged 15 commits into from
Nov 5, 2021
Merged
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;
};